Compare commits

...

2 Commits

Author SHA1 Message Date
25655
475d022a95 fix:
1.贷记单计算金额未保存出现数据错误,已修复

(cherry picked from commit ceac327ea2)
2025-03-28 11:37:29 +08:00
25655
9df13f0ca1 fix:
1.贷记单计算金额未保存出现数据错误,已修复

(cherry picked from commit 981fa16879)
2025-03-28 11:37:29 +08:00
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ package com.yem.wm.im.debcrednotenew.op;
import com.alibaba.druid.support.logging.Log; import com.alibaba.druid.support.logging.Log;
import com.alibaba.druid.support.logging.LogFactory; import com.alibaba.druid.support.logging.LogFactory;
import com.yem.wm.es.salesorder.validator.SaleOrderDelValidator;
import com.yem.wm.im.debcrednotenew.utils.DebCredUtils; import com.yem.wm.im.debcrednotenew.utils.DebCredUtils;
import com.yem.wm.im.debcrednotenew.validator.DebCredNewAuditValidatorOp; import com.yem.wm.im.debcrednotenew.validator.DebCredNewAuditValidatorOp;
import kd.bos.dataentity.OperateOption; import kd.bos.dataentity.OperateOption;
@ -18,7 +17,6 @@ import kd.bos.exception.KDBizException;
import kd.bos.orm.query.QCP; import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter; import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.QueryServiceHelper;
import kd.bos.servicehelper.operation.OperationServiceHelper; import kd.bos.servicehelper.operation.OperationServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper; import kd.bos.servicehelper.operation.SaveServiceHelper;
@ -61,7 +59,7 @@ public class DebCredNewAuditPlugin extends AbstractOperationServicePlugIn {
BigDecimal yemAmountSub = temp.getBigDecimal("yem_amount_sub");//配件资金池扣减金额 BigDecimal yemAmountSub = temp.getBigDecimal("yem_amount_sub");//配件资金池扣减金额
BigDecimal yemLastrmbamt = temp.getBigDecimal("yem_lastrmbamt");//上次人民币金额 BigDecimal yemLastrmbamt = temp.getBigDecimal("yem_lastrmbamt");//上次人民币金额
if ("USD".equals(yemCurrencyString)){ if ("USD".equals(yemCurrencyString)){
BigDecimal yem_remainingusdamount = yemLastusdamt.add(yemAmount).subtract(yemAmountSub); BigDecimal yem_remainingusdamount = yemLastusdamt.add(yemAmount).subtract(yemLastusdamt);
temp.set("yem_remainingusdamount",yem_remainingusdamount); temp.set("yem_remainingusdamount",yem_remainingusdamount);
temp.set("yem_remainingamount",yemLastrmbamt); temp.set("yem_remainingamount",yemLastrmbamt);
}else if ("CNY".equals(yemCurrencyString)){ }else if ("CNY".equals(yemCurrencyString)){

View File

@ -175,5 +175,6 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn {
} }
// throw new RuntimeException("返回"); // throw new RuntimeException("返回");
SaveServiceHelper.update(temp); SaveServiceHelper.update(temp);
SaveServiceHelper.save(new DynamicObject[]{temp});
} }
} }