|
|
@ -1,9 +1,13 @@
|
|
|
|
package com.shxy.xymanager_service.impl;
|
|
|
|
package com.shxy.xymanager_service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.dto.DyLineAndTerminalWithHeartDto;
|
|
|
|
import com.shxy.xymanager_common.entity.TbPermission;
|
|
|
|
import com.shxy.xymanager_common.entity.TbPermission;
|
|
|
|
import com.shxy.xymanager_common.entity.TbPermissionExample;
|
|
|
|
import com.shxy.xymanager_common.entity.TbPermissionExample;
|
|
|
|
import com.shxy.xymanager_common.entity.TbRole;
|
|
|
|
import com.shxy.xymanager_common.entity.TbRole;
|
|
|
|
import com.shxy.xymanager_common.entity.TbRoleExample;
|
|
|
|
import com.shxy.xymanager_common.entity.TbRoleExample;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.enums.CommonStatus;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_common.model.DyLineTreeListModel;
|
|
|
|
|
|
|
|
import com.shxy.xymanager_dao.dao.DyLevelDao;
|
|
|
|
import com.shxy.xymanager_dao.dao.TbPermissionMapper;
|
|
|
|
import com.shxy.xymanager_dao.dao.TbPermissionMapper;
|
|
|
|
import com.shxy.xymanager_dao.dao.TbRoleMapper;
|
|
|
|
import com.shxy.xymanager_dao.dao.TbRoleMapper;
|
|
|
|
import com.shxy.xymanager_service.service.RoleService;
|
|
|
|
import com.shxy.xymanager_service.service.RoleService;
|
|
|
@ -27,6 +31,9 @@ public class RoleServiceImpl implements RoleService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
TbPermissionMapper permissionMapper;
|
|
|
|
TbPermissionMapper permissionMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
DyLevelDao dyLevelDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<TbRole> listAll() {
|
|
|
|
public List<TbRole> listAll() {
|
|
|
|
TbRoleExample example = new TbRoleExample();
|
|
|
|
TbRoleExample example = new TbRoleExample();
|
|
|
@ -78,4 +85,17 @@ public class RoleServiceImpl implements RoleService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* 查询权限树状列表
|
|
|
|
|
|
|
|
* */
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<TbPermission> getPermissionTree() {
|
|
|
|
|
|
|
|
DyLineTreeListModel model = new DyLineTreeListModel();
|
|
|
|
|
|
|
|
List<DyLineAndTerminalWithHeartDto> list = dyLevelDao.selectPermissionListTreeList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|