付款申请单提交校验逻辑优化

This commit is contained in:
xuhaihui 2025-06-18 11:25:55 +08:00
parent 01adcd8a8c
commit fa4fb79d7e
3 changed files with 7 additions and 8 deletions

View File

@ -22,6 +22,7 @@ public class PaymentApplyInvoiceValidateOp extends AbstractOperationServicePlugI
} }
public void onAddValidators(AddValidatorsEventArgs e) { public void onAddValidators(AddValidatorsEventArgs e) {
e.addValidator(new PaymentApplyInvoiceValidator()); // e.addValidator(new PaymentApplyInvoiceValidator());
e.getValidators().removeIf(validator -> validator instanceof PaymentApplyInvoiceValidator);
} }
} }

View File

@ -23,9 +23,9 @@ import kd.bos.servicehelper.QueryServiceHelper;
import kd.ec.basedata.common.enums.BillStatusEnum; import kd.ec.basedata.common.enums.BillStatusEnum;
import zcgj.zcdev.zcdev.pr.plugin.form.MaterialInbFinaceConfirmeInvoicePlugin; import zcgj.zcdev.zcdev.pr.plugin.form.MaterialInbFinaceConfirmeInvoicePlugin;
class PaymentApplyInvoiceValidator extends AbstractValidator { public class PaymentApplyInvoiceValidator extends AbstractValidator {
private static final Log log = LogFactory.getLog(PaymentApplyInvoiceValidator.class); private static final Log log = LogFactory.getLog(PaymentApplyInvoiceValidator.class);
PaymentApplyInvoiceValidator() { public PaymentApplyInvoiceValidator() {
} }
public void validate() { public void validate() {

View File

@ -1,8 +1,3 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package zcgj.zcdev.zcdev.pr.plugin.form; package zcgj.zcdev.zcdev.pr.plugin.form;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn; import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
@ -10,6 +5,9 @@ import kd.bos.entity.plugin.AddValidatorsEventArgs;
import kd.bos.entity.plugin.PreparePropertysEventArgs; import kd.bos.entity.plugin.PreparePropertysEventArgs;
import kd.ec.ecpf.opplugin.PaymentApplyInvoiceValidator; import kd.ec.ecpf.opplugin.PaymentApplyInvoiceValidator;
/*
* 付款申请单提交操作校验更改
*/
public class PaymentApplyInvoiceValidateOpExt extends AbstractOperationServicePlugIn { public class PaymentApplyInvoiceValidateOpExt extends AbstractOperationServicePlugIn {
public PaymentApplyInvoiceValidateOpExt() { public PaymentApplyInvoiceValidateOpExt() {
} }