fix: 87554 标准解读流程--外来标准删除后,流程基础信息回显标准为空了
This commit is contained in:
+4
-4
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user