|
@@ -143,6 +143,20 @@ public class BuyBackActionOpPlugin extends AbstractOperationServicePlugIn {
|
|
|
if(StringUtils.isNotEmpty(actinterest)){
|
|
if(StringUtils.isNotEmpty(actinterest)){
|
|
|
data.set("nckd_actinterest", new BigDecimal(actinterest));
|
|
data.set("nckd_actinterest", new BigDecimal(actinterest));
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if ("借入协议回购借款本金".equals(tradeTypeName)) {
|
|
|
|
|
+ //债券质押到期续做新开,融入方资金划入,拟购回日期:20240319,预算到期利息:26782.19[business_id:14437]
|
|
|
|
|
+ //回购日期
|
|
|
|
|
+ String endDate = detail.substring(detail.indexOf("预算到期利息:")-9, detail.indexOf("预算到期利息:")-1);
|
|
|
|
|
+ if(StringUtils.isNotEmpty(endDate) && endDate.length() == 8){
|
|
|
|
|
+ endDate = endDate.substring(0, 4) + "-" + endDate.substring(4, 6) + "-" + endDate.substring(6, 8);
|
|
|
|
|
+ data.set("nckd_enddate", sdf.parse(endDate));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //预计利息
|
|
|
|
|
+ String actinterest = detail.substring(detail.indexOf("预算到期利息:") + 7, detail.indexOf("[business_id"));
|
|
|
|
|
+ if(StringUtils.isNotEmpty(actinterest)){
|
|
|
|
|
+ data.set("nckd_actinterest", new BigDecimal(actinterest));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|