diff --git a/ic/src/private/nc/pubimpl/ic/m4d/mm55a3/action/PushSaveActionFor55A3.java b/ic/src/private/nc/pubimpl/ic/m4d/mm55a3/action/PushSaveActionFor55A3.java new file mode 100644 index 00000000..a9ed319b --- /dev/null +++ b/ic/src/private/nc/pubimpl/ic/m4d/mm55a3/action/PushSaveActionFor55A3.java @@ -0,0 +1,40 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by FernFlower decompiler) +// + +package nc.pubimpl.ic.m4d.mm55a3.action; + +import nc.bs.ic.general.rule.before.IgnoreSafetyStockCheck; +import nc.bs.ic.general.rule.before.MaterialOutBillDateRule; +import nc.bs.ic.general.rule.before.RowNoProcessForPushBill; +import nc.bs.ic.m4d.base.ServicePluginPoint; +import nc.bs.ic.m4d.insert.InsertBP; +import nc.bs.ic.pub.base.ICAroundProcesser; +import nc.vo.ic.general.util.BillChangeUtil; +import nc.vo.ic.m4d.entity.MaterialOutVO; +import nc.vo.pubapp.pattern.log.TimeLog; + +public class PushSaveActionFor55A3 { + public PushSaveActionFor55A3() { + } + + public MaterialOutVO[] pushSave(MaterialOutVO[] vos, boolean isFillNum) { + ICAroundProcesser processor = new ICAroundProcesser(ServicePluginPoint.pushSaveFor55A3); + processor.addBeforeRule(new MaterialOutBillDateRule<>()); + processor.addBeforeRule(new Push4DFor55A3BeforeProcess(isFillNum)); + processor.addBeforeRule(new IgnoreSafetyStockCheck()); + processor.addBeforeRule(new RowNoProcessForPushBill()); + TimeLog.logStart(); + (new BillChangeUtil()).dealLiabilityFor4D(vos); + MaterialOutVO[] beforeRstVos = (MaterialOutVO[])processor.before(vos); + TimeLog.info("调用新增保存BP前执行业务规则"); + TimeLog.logStart(); + MaterialOutVO[] ret = (new InsertBP()).insert(beforeRstVos); + TimeLog.info("调用新增保存BP,进行保存"); + TimeLog.logStart(); + processor.after(ret); + TimeLog.info("调用新增保存BP后执行业务规则"); + return ret; + } +}