fix: 87554 标准解读流程--外来标准删除后,流程基础信息回显标准为空了

This commit is contained in:
2024-07-31 13:40:39 +08:00
parent 028b88377f
commit a95960a1ac
3 changed files with 7 additions and 7 deletions
@@ -1067,10 +1067,10 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
wrapper.eq(ProcessAll::getPrcStatus, FinishFlagEnum.INCOMPLETE.getValue());
// 未完成的流程
List<ProcessAll> incompleteList = paService.list(wrapper);
return collect.stream().filter(e -> incompleteList.stream()
.noneMatch(i -> i.getProcessInstanceId().equals(e.getProcessInstanceId())))
.map(ProcessStandardComplianceCheck::getStandardId)
.collect(Collectors.toList());
List<String> incompletePrcIdList = incompleteList.stream().map(ProcessAll::getProcessInstanceId).collect(Collectors.toList());
// 筛选出未完成的流程对应的标准id
return collect.stream().filter(e -> incompletePrcIdList.contains(e.getProcessInstanceId()))
.map(ProcessStandardComplianceCheck::getStandardId).collect(Collectors.toList());
}
@Override
@@ -35,8 +35,8 @@ public class StandardUtil {
Set<String> doNotDeleteSet = new HashSet<>(data);
// 检查交集,如果存在,则抛出异常
for (String id : strings) {
if (doNotDeleteSet.contains(id)) {
for (String id : doNotDeleteSet) {
if (strings.contains(id)) {
throw new JeroBootException(provider.getResultCommon());
}
}