fix: 立项变更保存到草稿会复制一条数据
This commit is contained in:
+1
-2
@@ -216,8 +216,7 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
String newBusinessId = actFlowCommonService.getNewBusinessId();
|
String newBusinessId = actFlowCommonService.getNewBusinessId();
|
||||||
// 新增业务表数据
|
// 新增业务表数据
|
||||||
dataList.forEach(e -> e.setBusinessId(newBusinessId));
|
dataList.forEach(e -> e.setBusinessId(newBusinessId));
|
||||||
dataList.forEach(e -> e.setId(null));
|
saveOrUpdateBatch(dataList);
|
||||||
saveBatch(dataList);
|
|
||||||
// 新增草稿表数据
|
// 新增草稿表数据
|
||||||
actFlowCommonService.addDraft(commonVO, ProcessTypeEnum.ES_INIT_CHANGE, newBusinessId);
|
actFlowCommonService.addDraft(commonVO, ProcessTypeEnum.ES_INIT_CHANGE, newBusinessId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user