| | |
| | | |
| | | values.put("roleId", employeeRoleLogin.getRoleId()); |
| | | values.put("employeeId", employeeRoleLogin.getPreId()); |
| | | sqlSentence.sqlSentence(" select o.*,ert.name AS roleName from employee_role o JOIN employee_role_type ert ON ert.isDel = 0" + |
| | | " AND ert.id = o.roleTypeId where o.id = #{m.roleId} AND o.employeeId = #{m.employeeId}",values); |
| | | sqlSentence.sqlSentence(" select er.*,o.name AS roleName from employee_role_type o JOIN employee_role er ON er.isDel = 0" + |
| | | " AND er.roleTypeId = o.id AND er.employeeId = #{m.employeeId} where o.id = #{m.roleId} AND o.isDel = 0",values); |
| | | EmployeeRole employeeRole = commonService.selectOne(EmployeeRoleMapper.class,sqlSentence); |
| | | if(employeeRole == null){ |
| | | throw new PlatTipsException(PlatformCode.ERROR_TIPS,"角色不存在"); |
| | |
| | | values.clear(); |
| | | values.put("roleTypeId",employeeRole.getRoleTypeId()); |
| | | values.put("isDel", EmployeeRoleAdminAuthority.NO); |
| | | sqlSentence.sqlSentence("SELECT saa.tag FROM emloyee_role_admin_authority o JOIN sys_admin_authority saa ON saa.isDel = #{m.isDel} AND saa.is = o.sysAdAuId WHERE o.roleTypeId = #{m.roleTypeId} AND o.isDel = #{m.isDel}",values); |
| | | sqlSentence.sqlSentence("SELECT saa.tag FROM emloyee_role_admin_authority o JOIN sys_admin_authority saa ON saa.isDel = #{m.isDel} AND saa.id = o.sysAdAuId WHERE o.roleTypeId = #{m.roleTypeId} AND o.isDel = #{m.isDel}",values); |
| | | List<SysAdminAuthority> authList = commonService.selectList(SysAdminAuthorityMapper.class,sqlSentence); |
| | | |
| | | JSONArray arrAuth = new JSONArray(); |