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: case StandardInterpretCommon.CONTACT_PERSON_DISTRIBUTE:
processStandardInterpretService.updateById(processStandardInterpret); processStandardInterpretService.updateById(processStandardInterpret);
List<String> clauseIdList = processStandardInterpretClauseList.stream() // List<String> clauseIdList = processStandardInterpretClauseList.stream()
.map(ProcessStandardInterpretClause::getId) // .map(ProcessStandardInterpretClause::getId)
.collect(Collectors.toList()); // .collect(Collectors.toList());
// 删除旧数据 // 删除旧数据
LambdaQueryWrapper<ProcessStandardInterpretClause> removeQueryWrapper = new LambdaQueryWrapper<>(); // LambdaQueryWrapper<ProcessStandardInterpretClause> removeQueryWrapper = new LambdaQueryWrapper<>();
removeQueryWrapper.notIn(ProcessStandardInterpretClause::getId, clauseIdList); // removeQueryWrapper.notIn(ProcessStandardInterpretClause::getId, clauseIdList);
removeQueryWrapper.eq(ProcessStandardInterpretClause::getStandardInterpretId, standardInterpretId); // removeQueryWrapper.eq(ProcessStandardInterpretClause::getStandardInterpretId, standardInterpretId);
processStandardInterpretClauseService.remove(removeQueryWrapper); // processStandardInterpretClauseService.remove(removeQueryWrapper);
processStandardInterpretClauseService.removeByIds(processAllDelIds);
// 标准主解读人 // 标准主解读人
map.put(StandardInterpretCommon.MASTER_INTERPRET, processStandardInterpret.getMasterInterpretId()); map.put(StandardInterpretCommon.MASTER_INTERPRET, processStandardInterpret.getMasterInterpretId());