优化代码 付款申请校验取消 合同计量优化
This commit is contained in:
parent
6a5ea5764b
commit
80816b7562
|
@ -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());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue