diff --git a/src/main/resources/mapper/RoleMapper.xml b/src/main/resources/mapper/RoleMapper.xml index 11d38d6..57a84e9 100644 --- a/src/main/resources/mapper/RoleMapper.xml +++ b/src/main/resources/mapper/RoleMapper.xml @@ -65,6 +65,9 @@ -- 自连接,通过 father_id 关联父角色 LEFT JOIN role father ON r.father_id = father.id + + r.role_name LIKE CONCAT('%', #{roleName}, '%') + AND r.market IN @@ -72,9 +75,6 @@ #{market} - - r.role_name LIKE CONCAT('%', #{roleName}, '%') - ORDER BY r.priority DESC