fix: 修复线上BUG

This commit is contained in:
zhangyanduan
2022-07-13 14:44:43 +08:00
parent 8617abdcd6
commit e42fbce67e
2 changed files with 14 additions and 11 deletions
@@ -56,7 +56,7 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
resource.setTreeType("sarMs");
QueryWrapper<SarMenuStandard> TsResourceQueryWrapper=new QueryWrapper<>();
TsResourceQueryWrapper.like("PARENT_IDS",resource.getId());
TsResourceQueryWrapper.in(null!=access,"ID",access);
TsResourceQueryWrapper.in(null!=access && !access.isEmpty(),"ID",access);
TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ");
List<SarMenuStandard> children=dao.selectList(TsResourceQueryWrapper);
resource.setChildren(recursionGetListChildrenStand((resource),(children)));
@@ -83,9 +83,4 @@ public class SarMenuStandardNewServiceNewImpl extends ServiceImpl<SarMenuStandar
return tsResources;
}
}