Commit 469b7946 authored by luzhuang's avatar luzhuang

role

parent 96724b96
...@@ -27,8 +27,9 @@ public interface SysRoleRepository extends BaseMapper<SysRole> { ...@@ -27,8 +27,9 @@ public interface SysRoleRepository extends BaseMapper<SysRole> {
* @param * @param
* @return * @return
*/ */
@Select("<script>select * from s_role where flag = '1' and del_flag = '0' " + @Select("<script>select * from tm_admin_role " +
"AND role_name not in('主管理员','子管理员')" + "where r_status = 1 " +
"and r_id not in('主管理员','子管理员')" +
" order by create_date desc" + " order by create_date desc" +
"</script>") "</script>")
@ResultMap(value = "SelectAllAndUserNum") @ResultMap(value = "SelectAllAndUserNum")
...@@ -37,8 +38,7 @@ public interface SysRoleRepository extends BaseMapper<SysRole> { ...@@ -37,8 +38,7 @@ public interface SysRoleRepository extends BaseMapper<SysRole> {
//获得此角色的用户数 //获得此角色的用户数
int countUserNum(String roleId); int countUserNum(String roleId);
@Select("<script>select * from s_role where " @Select("<script>select * from tm_admin_role where "
+ "DEL_FLAG='0' "
+ "</script>") + "</script>")
@ResultMap(value = "BaseResultMap") @ResultMap(value = "BaseResultMap")
List<SysRole> queryRolesSelect(SysRole sysRole); List<SysRole> queryRolesSelect(SysRole sysRole);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment