修复排序bug
ci-userbase-service / build-and-push (push) Successful in 2m22s

This commit is contained in:
chenxing
2026-08-12 21:33:08 +08:00
parent cfee8012a6
commit 3855ea2eca
@@ -39,7 +39,7 @@ public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaS
"FROM sys_user u " +
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
"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.idcard LIKE CONCAT('%', :name, '%') " +
" OR u.phone = :name) " +
@@ -51,7 +51,7 @@ public interface SysUserRepository extends JpaRepository<SysUser, Integer>, JpaS
"FROM sys_user u " +
"INNER JOIN sys_user_group_rel r ON r.user_id = u.id " +
"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.idcard LIKE CONCAT('%', :name, '%') " +
" OR u.phone = :name) " +