| | |
| | | Long selectSomeCount(Map<String, Object> params); |
| | | |
| | | List<BaRole> selectSome(Map<String, Object> params); |
| | | |
| | | List<BaRole> selectAll(); |
| | | } |
| | |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | <select id="selectAll" resultType="com.dy.pmsGlobal.pojoBa.BaRole"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ba_role |
| | | where deleted != 1 and disabled !=1 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询所有角色 |
| | | * @return |
| | | */ |
| | | @GetMapping(path="all") |
| | | @SsoPowerAop(power = "10100010") //登录与权限同时验证 |
| | | @Log("查询所有角色") |
| | | public BaseResponse<List<BaRole>> all(String id){ |
| | | try{ |
| | | List<BaRole> roles=roleSv.selectAll(); |
| | | return BaseResponseUtils.buildSuccess(roles); |
| | | }catch (Exception e){ |
| | | log.error("查询所有角色异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询角色信息 |
| | | * @param vo |
| | | * @return |
| | |
| | | return dao.selectByPrimaryKey(Long.valueOf(roleId)); |
| | | } |
| | | |
| | | public List<BaRole> selectAll() { |
| | | return dao.selectAll(); |
| | | } |
| | | |
| | | /** |
| | | * 获取角色列表 |
| | | */ |