Merge remote-tracking branch 'origin/develop_3' into develop_3

This commit is contained in:
zhaokaiyao@91isoft.com
2021-07-27 10:43:17 +08:00
2 changed files with 19 additions and 11 deletions
@@ -146,4 +146,4 @@ elasticsearch.clustername=elasticsearch
elasticsearch.ip=192.168.10.47 elasticsearch.ip=192.168.10.47
elasticsearch.port=9300 elasticsearch.port=9300
elasticsearch.poolSize=5 elasticsearch.poolSize=5
elas.flag=true elas.flag=false
@@ -185,16 +185,24 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
*/ */
public List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception { public List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception {
//查询当前登录人角色拥有权限的菜单 //查询当前登录人角色拥有权限的菜单
List<String> getMenuIdList=tsUserService.getResourceId(new TsResource()); if(page.getMenuId() != null ){
// List<String> getMenuIdList = sarMenuEOService.queryRoleMenuIdList(page.getStandType() + "_STAND", null); QueryWrapper<TsResource> qw = new QueryWrapper<>();
if (getMenuIdList != null && !getMenuIdList.isEmpty()) { qw.eq("ID",page.getMenuId());
page.setMenuRoleList(getMenuIdList); qw.isNull("PARENT_ID");
} else { List<TsResource> children = iTsResourceService.list(qw);
page.setMenuRoleList(null); if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
} List<String> getMenuIdList = tsUserService.getResourceId(new TsResource());
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId()); if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
if (ids != null && !ids.isEmpty()) { page.setMenuRoleList(getMenuIdList);
page.setMenuAllChildrenIdList(ids); } else {
page.setMenuRoleList(null);
}
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
if (ids != null && !ids.isEmpty()) {
page.setMenuAllChildrenIdList(ids);
}
}
} }
Integer rowCount = dao.getSarStandardsInfoCount(page); Integer rowCount = dao.getSarStandardsInfoCount(page);
page.getPager().setRowCount(rowCount); page.getPager().setRowCount(rowCount);