fix: 修复线上BUG
This commit is contained in:
+1
-6
@@ -56,7 +56,7 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
|||||||
resource.setTreeType("sarMs");
|
resource.setTreeType("sarMs");
|
||||||
QueryWrapper<SarMenuStandard> TsResourceQueryWrapper=new QueryWrapper<>();
|
QueryWrapper<SarMenuStandard> TsResourceQueryWrapper=new QueryWrapper<>();
|
||||||
TsResourceQueryWrapper.like("PARENT_IDS",resource.getId());
|
TsResourceQueryWrapper.like("PARENT_IDS",resource.getId());
|
||||||
TsResourceQueryWrapper.in(null!=access,"ID",access);
|
TsResourceQueryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
|
||||||
TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ");
|
TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ");
|
||||||
List<SarMenuStandard> children=dao.selectList(TsResourceQueryWrapper);
|
List<SarMenuStandard> children=dao.selectList(TsResourceQueryWrapper);
|
||||||
resource.setChildren(recursionGetListChildrenStand((resource),(children)));
|
resource.setChildren(recursionGetListChildrenStand((resource),(children)));
|
||||||
@@ -83,9 +83,4 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
|||||||
return tsResources;
|
return tsResources;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-5
@@ -1977,14 +1977,22 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 发布稿
|
// 发布稿
|
||||||
List<String> fbgNew = Arrays.stream(newMap.getOrDefault("FBGBJBD", "").toString().split(","))
|
List<String> fbgNew = new ArrayList<>();
|
||||||
.map(String::trim).collect(Collectors.toList());
|
if(newMap!=null && newMap.containsKey("FBGBJBD")){
|
||||||
|
fbgNew = Arrays.stream(newMap.getOrDefault("FBGBJBD", "").toString().split(","))
|
||||||
|
.map(String::trim).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<String> fbgOld = new ArrayList<>();
|
||||||
|
if(oldMap!=null && oldMap.containsKey("FBGBJBD")){
|
||||||
|
fbgOld = Arrays.stream(oldMap.getOrDefault("FBGBJBD", "").toString().split(","))
|
||||||
|
.map(String::trim).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
List<String> fbgOld = Arrays.stream(oldMap.getOrDefault("FBGBJBD", "").toString().split(","))
|
|
||||||
.map(String::trim).collect(Collectors.toList());
|
|
||||||
// 取差集 判断是否有新的发布稿
|
// 取差集 判断是否有新的发布稿
|
||||||
|
List<String> finalFbgOld = fbgOld;
|
||||||
List<String> filterDisunityFbg = fbgNew.stream()
|
List<String> filterDisunityFbg = fbgNew.stream()
|
||||||
.filter(item -> !new ArrayList<>(fbgOld)
|
.filter(item -> !new ArrayList<>(finalFbgOld)
|
||||||
.contains(item))
|
.contains(item))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user