feat(标准解读流程): 删除条款

This commit is contained in:
yjz
2024-07-11 18:10:28 +08:00
parent d17efcb8d5
commit 268e698015
@@ -1142,14 +1142,15 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
case StandardInterpretCommon.CONTACT_PERSON_DISTRIBUTE:
processStandardInterpretService.updateById(processStandardInterpret);
List<String> clauseIdList = processStandardInterpretClauseList.stream()
.map(ProcessStandardInterpretClause::getId)
.collect(Collectors.toList());
// List<String> clauseIdList = processStandardInterpretClauseList.stream()
// .map(ProcessStandardInterpretClause::getId)
// .collect(Collectors.toList());
// 删除旧数据
LambdaQueryWrapper<ProcessStandardInterpretClause> removeQueryWrapper = new LambdaQueryWrapper<>();
removeQueryWrapper.notIn(ProcessStandardInterpretClause::getId, clauseIdList);
removeQueryWrapper.eq(ProcessStandardInterpretClause::getStandardInterpretId, standardInterpretId);
processStandardInterpretClauseService.remove(removeQueryWrapper);
// LambdaQueryWrapper<ProcessStandardInterpretClause> removeQueryWrapper = new LambdaQueryWrapper<>();
// removeQueryWrapper.notIn(ProcessStandardInterpretClause::getId, clauseIdList);
// removeQueryWrapper.eq(ProcessStandardInterpretClause::getStandardInterpretId, standardInterpretId);
// processStandardInterpretClauseService.remove(removeQueryWrapper);
processStandardInterpretClauseService.removeByIds(processAllDelIds);
// 标准主解读人
map.put(StandardInterpretCommon.MASTER_INTERPRET, processStandardInterpret.getMasterInterpretId());