log:订舱提交信保额度校验增加日志输出
This commit is contained in:
parent
f292ea085a
commit
bd36c4ec3b
@ -11,6 +11,8 @@ import kd.bos.entity.operate.result.OperationResult;
|
||||
import kd.bos.entity.validate.AbstractValidator;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.operation.OperationServiceHelper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@ -20,6 +22,9 @@ import java.math.BigDecimal;
|
||||
* @description StorageAuditValid
|
||||
*/
|
||||
public class StorageAuditValid extends AbstractValidator {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(StorageAuditValid.class);
|
||||
|
||||
@Override
|
||||
public void validate() {
|
||||
ExtendedDataEntity[] dataEntities = this.getDataEntities();
|
||||
@ -42,11 +47,15 @@ public class StorageAuditValid extends AbstractValidator {
|
||||
continue;
|
||||
}
|
||||
if (YEM.isNotEmpty(customer) && YEM.isNotEmpty(csrCreditLine)) {
|
||||
log.info("客户信保限额申请:[{}]", csrCreditLine.getString("billno"));
|
||||
BigDecimal decimal = CreditBackFillUtils.calcRemainingAmount(csrCreditLine);
|
||||
if (decimal.compareTo(dataEntitie.getBigDecimal("yem_usacreditamt")) >= 0) {
|
||||
BigDecimal usacreditamt = dataEntitie.getBigDecimal("yem_usacreditamt");
|
||||
log.info("{} >= {}", decimal, usacreditamt);
|
||||
if (decimal.compareTo(usacreditamt) >= 0) {
|
||||
csrCreditLine.set("yem_balance", decimal);
|
||||
log.info("{} >= {} 不执行提示!", decimal, usacreditamt);
|
||||
} else {
|
||||
this.addMessage(dataes, "当前客户对应的信保额度申请剩余额度小于0,请确认!");
|
||||
this.addMessage(dataes, String.format("当前客户对应的信保额度申请剩余额度小于0,请确认!剩余额度[%s] : 投保金额[%s]", decimal, usacreditamt));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user