fix: 修复线上报错的BUG
This commit is contained in:
+6
-2
@@ -47,7 +47,9 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
||||
if(sarMenuStandardNew.getDicId()!=null){
|
||||
queryWrapper.eq("DIC_ID", sarMenuStandardNew.getDicId());
|
||||
}
|
||||
queryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
|
||||
if(access!=null && !access.isEmpty()){
|
||||
queryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
|
||||
}
|
||||
queryWrapper.isNull("PARENT_ID");
|
||||
queryWrapper.orderByAsc("DISPLAY_SEQ");
|
||||
TsResources=dao.selectList(queryWrapper);
|
||||
@@ -56,7 +58,9 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
|
||||
resource.setTreeType("sarMs");
|
||||
QueryWrapper<SarMenuStandard> TsResourceQueryWrapper=new QueryWrapper<>();
|
||||
TsResourceQueryWrapper.like("PARENT_IDS",resource.getId());
|
||||
TsResourceQueryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
|
||||
if(access!=null && !access.isEmpty()){
|
||||
TsResourceQueryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
|
||||
}
|
||||
TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ");
|
||||
List<SarMenuStandard> children=dao.selectList(TsResourceQueryWrapper);
|
||||
resource.setChildren(recursionGetListChildrenStand((resource),(children)));
|
||||
|
||||
Reference in New Issue
Block a user