diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java new file mode 100644 index 0000000..8b0d686 --- /dev/null +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/operate/SubmitInContractBillOp.java @@ -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 validators = e.getValidators(); + for (AbstractValidator validator:validators){ + if (validator instanceof ContractValidator){ + validators.remove(validator); + break; + } + } + super.onAddValidators(e); + } +}