diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/esInitChange/listener/ProcessESInitChangeEndListener.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/esInitChange/listener/ProcessESInitChangeEndListener.java index ccde7661..5f5303ee 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/esInitChange/listener/ProcessESInitChangeEndListener.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/esInitChange/listener/ProcessESInitChangeEndListener.java @@ -82,11 +82,10 @@ public class ProcessESInitChangeEndListener implements ExecutionListener { if (ESPProjectType.COMPLETE_TIME_CHANGE.getValue().equals(projectType)) { // 将企标计划变更状态设为取消 for (ProcessEsInitChange processEsInitChange : processEsInitChanges) { - processEsInitChange.setProjectStatus(ESPProjectStatus.IN_PROGRESS.getValue()); processEsInitChange.setChangeStatus(ESPChangeType.CHANGE.getValue()); } enterpriseStandardPlans = BeanCopyUtils.copyBeanList(processEsInitChanges, EnterpriseStandardPlan.class); - espService.saveOrUpdateBatch(enterpriseStandardPlans); + espService.updateBatchById(enterpriseStandardPlans); } // 工作中止 @@ -106,11 +105,10 @@ public class ProcessESInitChangeEndListener implements ExecutionListener { if (ESPProjectType.RESPONSIBLE_DEPT_CHANGE.getValue().equals(projectType)) { // 将企标计划变更状态设为变更 for (ProcessEsInitChange processEsInitChange : processEsInitChanges) { - processEsInitChange.setProjectStatus(ESPProjectStatus.IN_PROGRESS.getValue()); processEsInitChange.setChangeStatus(ESPChangeType.CHANGE.getValue()); } enterpriseStandardPlans = BeanCopyUtils.copyBeanList(processEsInitChanges, EnterpriseStandardPlan.class); - espService.saveOrUpdateBatch(enterpriseStandardPlans); + espService.updateBatchById(enterpriseStandardPlans); } // 合并