优化代码 付款申请校验取消 合同计量优化

This commit is contained in:
xiaoshi 2024-12-31 17:30:30 +08:00
parent 6a5ea5764b
commit 80816b7562
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.validate.AbstractValidator;
import kd.ec.contract.opplugin.fund.PaymentApplyFundOp;
import kd.ec.contract.opplugin.fund.validator.PaymentMaxAmountValidator;
import kd.ec.contract.opplugin.fund.validator.PaymentTypeValidator;
import kd.ec.contract.opplugin.validator.ContractMeasureValidator;
import java.util.List;
@ -16,8 +17,11 @@ public class PaymentApplyFundExtOp extends PaymentApplyFundOp {
List<AbstractValidator> validators = e.getValidators();
// 删除标品校验器
validators.removeIf(validator -> validator instanceof PaymentMaxAmountValidator);
validators.removeIf(validator -> validator instanceof PaymentTypeValidator);
// 添加定制二开的校验器位置放第一位优先执行
// validators.add(0, new ContractMeasurementValidator());
}
}