fix: 立项变更保存到草稿会复制一条数据

This commit is contained in:
2023-11-27 11:46:34 +08:00
parent 02c6aeafa0
commit aa8826b7eb
@@ -216,8 +216,7 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
String newBusinessId = actFlowCommonService.getNewBusinessId();
// 新增业务表数据
dataList.forEach(e -> e.setBusinessId(newBusinessId));
dataList.forEach(e -> e.setId(null));
saveBatch(dataList);
saveOrUpdateBatch(dataList);
// 新增草稿表数据
actFlowCommonService.addDraft(commonVO, ProcessTypeEnum.ES_INIT_CHANGE, newBusinessId);
}