|
@@ -4,6 +4,7 @@ import com.alibaba.druid.util.StringUtils;
|
|
|
import dm.jdbc.util.StringUtil;
|
|
|
import fi.cas.common.SettlementStatusEnum;
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
|
+import kd.bos.dataentity.entity.DynamicObjectCollection;
|
|
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
|
import kd.bos.entity.plugin.args.BeginOperationTransactionArgs;
|
|
|
import kd.bos.orm.query.QCP;
|
|
@@ -12,6 +13,7 @@ import kd.bos.servicehelper.BusinessDataServiceHelper;
|
|
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
@@ -28,6 +30,14 @@ public class PaymentProcessOpPlugin extends AbstractOperationServicePlugIn {
|
|
|
for (int i = 0; i < dynamicObjects.length; i++) {
|
|
|
|
|
|
DynamicObject info = BusinessDataServiceHelper.loadSingle(dynamicObjects[i].getPkValue(), dynamicObjects[i].getDynamicObjectType().getName());
|
|
|
+
|
|
|
+ BigDecimal actpayamt = info.getBigDecimal("actpayamt");
|
|
|
+
|
|
|
+ String billno = info.getString("billno");
|
|
|
+
|
|
|
+ long id = info.getLong("id");
|
|
|
+
|
|
|
+ Date paydate = info.getDate("paydate");
|
|
|
|
|
|
Long sourcebillid = info.getLong("sourcebillid");
|
|
|
|
|
@@ -181,6 +191,15 @@ public class PaymentProcessOpPlugin extends AbstractOperationServicePlugIn {
|
|
|
htInfo.set("nckd_settleamount", nckd_settleamount);
|
|
|
htInfo.set("nckd_unsettleamount", nckd_unsettleamount);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ DynamicObjectCollection entryEntity = htInfo.getDynamicObjectCollection("nckd_payentry");
|
|
|
+ DynamicObject entry1 = entryEntity.addNew();
|
|
|
+ entry1.set("nckd_pay_billno1", billno);
|
|
|
+ entry1.set("nckd_pay_id1", id);
|
|
|
+ entry1.set("nckd_amountfield1", actpayamt);
|
|
|
+ entry1.set("nckd_timefield1", paydate);
|
|
|
+
|
|
|
SaveServiceHelper.save(new DynamicObject[]{htInfo});
|
|
|
}
|
|
|
}
|