Revert "fix:"

This reverts commit 8a58b241aa.
This commit is contained in:
ljw 2025-01-21 11:33:23 +08:00
parent e17ea78cf4
commit 10f238949f

View File

@ -695,24 +695,15 @@ public class StorageTransEdit extends AbstractBillPlugIn implements BeforeF7Sele
if (usacreditamt.compareTo(balance) > 0) { if (usacreditamt.compareTo(balance) > 0) {
// ConfirmCallBackListener confirmCallBackListener = new ConfirmCallBackListener("creditInsuranceConfirms", this); // ConfirmCallBackListener confirmCallBackListener = new ConfirmCallBackListener("creditInsuranceConfirms", this);
// this.getView().showConfirm(message, MessageBoxOptions.YesNo, confirmCallBackListener); // this.getView().showConfirm(message, MessageBoxOptions.YesNo, confirmCallBackListener);
sb.append(String.format("当前客户:[ %s ] 本次订舱投保总额为 [ %s ] ,剩余限额为 [ %s ] ,已超额,不允许进行信保确认!\n\r", sb.append(String.format("当前客户:[ %s ] 本次订舱投保总额为 [ %s ] ,剩余限额为 [ %s ] ,已超额,不允许进行信保确认!\n\r" ,
customer.getString("name"), customer.getString("name"),
usacreditamt.setScale(2, RoundingMode.HALF_UP), usacreditamt.setScale(2, RoundingMode.HALF_UP),
balance.setScale(2, RoundingMode.HALF_UP))); balance.setScale(2, RoundingMode.HALF_UP)));
} }
BigDecimal attcount = dataEntity.getBigDecimal("yem_attcount"); BigDecimal attcount = dataEntity.getBigDecimal("yem_attcount");
BigDecimal yemPreradioCd = BigDecimal.ZERO;
DynamicObjectCollection yemCreditdetail = dataEntity.getDynamicObjectCollection("yem_creditdetail");
if (!yemCreditdetail.isEmpty()) {
for (DynamicObject dynamicObject : yemCreditdetail) {
yemPreradioCd = yemPreradioCd.add(dynamicObject.getBigDecimal("yem_preradio_cd"));
}
}
if (yemPreradioCd.compareTo(BigDecimal.ZERO) > 0) {
if (attcount.compareTo(BigDecimal.ZERO) == 0) { if (attcount.compareTo(BigDecimal.ZERO) == 0) {
sb.append(String.format("未上传客户汇款水单附件,不能进行信保确认!\n\r")); sb.append(String.format("未上传客户汇款水单附件,不能进行信保确认!\n\r"));
} }
}
if (csrCreditLine != null && customer != null) { if (csrCreditLine != null && customer != null) {
} else { } else {
sb.append(String.format("当前客户不存在信保额度申请,不允许进行信保确认\n\r")); sb.append(String.format("当前客户不存在信保额度申请,不允许进行信保确认\n\r"));