查询权限列表增加排序功能

This commit is contained in:
xiangwb
2017-12-19 09:47:18 +08:00
parent aacbe2e994
commit 321f3e43d9
3 changed files with 15 additions and 15 deletions
@@ -101,6 +101,8 @@ public class SysAuthorityControl {
@ApiOperation(value = "根据父节点查询子节点")
@ApiImplicitParam(name = "parentId", value = "父id,可为空", paramType = "query", dataType = "string")
public JSONObject listByParentId(String parentId) {
if(StringUtils.isEmpty(parentId))
parentId=CommonConstant.ROOT;
if (!CommonConstant.ROOT.equals(parentId) && sysAuthorityService.getById(parentId) == null)
return JSONObjResult.toJSONObj("父节点不存在");
List<SysAuthority> queryByParentId = sysAuthorityService.listByParentEnable(parentId, null);