Merge remote-tracking branch 'origin/develop_3' into develop_3
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+18
-10
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user