fix: 变更流程结束以后制定的计划出现原企标编号字段

This commit is contained in:
2024-07-26 16:24:58 +08:00
parent f6e06c7e7f
commit c9a986427f
@@ -114,6 +114,7 @@ public class ProcessESInitChangeEndListener implements ExecutionListener {
processEsInitChange.setChangeStatus(ESPChangeType.COMPLETE_TIME_CHANGE.getValue());
}
enterpriseStandardPlans = BeanCopyUtils.copyBeanList(processEsInitChanges, EnterpriseStandardPlan.class);
enterpriseStandardPlans.forEach(esp -> esp.setOriginEnStandardNo(null));
espService.updateBatchById(enterpriseStandardPlans);
}
@@ -140,6 +141,7 @@ public class ProcessESInitChangeEndListener implements ExecutionListener {
processEsInitChange.setMainDraftingUnit(processEsInitChange.getNewMainDraftingUnit());
}
enterpriseStandardPlans = BeanCopyUtils.copyBeanList(processEsInitChanges, EnterpriseStandardPlan.class);
enterpriseStandardPlans.forEach(esp -> esp.setOriginEnStandardNo(null));
espService.updateBatchById(enterpriseStandardPlans);
}