修复排序bug
This commit is contained in:
@@ -39,7 +39,7 @@ public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaS
|
|||||||
"FROM sys_user u " +
|
"FROM sys_user u " +
|
||||||
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
|
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
|
||||||
"WHERE r.group_id IN (:groupIds) " +
|
"WHERE r.group_id IN (:groupIds) " +
|
||||||
" AND (:name IS NULL OR u.account LIKE CONCAT('%', :name, '%') " +
|
" AND (:name IS NULL OR u.username LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.real_name LIKE CONCAT('%', :name, '%') " +
|
" OR u.real_name LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.idcard LIKE CONCAT('%', :name, '%') " +
|
" OR u.idcard LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.phone = :name) " +
|
" OR u.phone = :name) " +
|
||||||
@@ -51,7 +51,7 @@ public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaS
|
|||||||
"FROM sys_user u " +
|
"FROM sys_user u " +
|
||||||
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
|
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
|
||||||
"WHERE r.group_id IN (:groupIds) " +
|
"WHERE r.group_id IN (:groupIds) " +
|
||||||
" AND (:name IS NULL OR u.account LIKE CONCAT('%', :name, '%') " +
|
" AND (:name IS NULL OR u.username LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.real_name LIKE CONCAT('%', :name, '%') " +
|
" OR u.real_name LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.idcard LIKE CONCAT('%', :name, '%') " +
|
" OR u.idcard LIKE CONCAT('%', :name, '%') " +
|
||||||
" OR u.phone = :name) " +
|
" OR u.phone = :name) " +
|
||||||
|
|||||||
Reference in New Issue
Block a user