fix: 立项变更保存到草稿会复制一条数据
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user