perf: 88136 scc流程不分发提交性能优化
This commit is contained in:
+5
-3
@@ -418,9 +418,11 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
||||
});
|
||||
// 先删后增
|
||||
sccDetailService.removeByIds(detailInfoListIds);
|
||||
detailInfoList.parallelStream().forEach(detail -> detail.setValuationTime(new Date()));
|
||||
detailInfoList.parallelStream().forEach(detail -> detail.setId(null));
|
||||
sccDetailService.saveBatch(detailInfoList);
|
||||
detailInfoList.parallelStream().forEach(detail -> {
|
||||
detail.setId(null);
|
||||
detail.setValuationTime(new Date());
|
||||
});
|
||||
sccDetailService.saveBatch(detailInfoList, detailInfoList.size());
|
||||
}
|
||||
runtimeService.setVariable(processInstanceId, DISTRIBUTE, distributeFlag);
|
||||
runtimeService.setVariable(processInstanceId, UNALLOCATED_QUANTITY, unallocatedQuantity);
|
||||
|
||||
Reference in New Issue
Block a user