去除函数合同金额校验

This commit is contained in:
小石 2024-11-28 14:11:05 +08:00
parent d7472caefa
commit 0e813a5cfe
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package zcgj.zcdev.zcdev.pr.plugin.operate;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.validate.AbstractValidator;
import kd.ec.contract.opplugin.InContractBillOp;
import kd.ec.contract.opplugin.validator.ContractValidator;
import java.util.List;
public class SubmitInContractBillOp extends InContractBillOp{
@Override
public void onAddValidators(AddValidatorsEventArgs e) {
List<AbstractValidator> validators = e.getValidators();
for (AbstractValidator validator:validators){
if (validator instanceof ContractValidator){
validators.remove(validator);
break;
}
}
super.onAddValidators(e);
}
}