Browse Source

修复管理员分页问题:移除countAll方法中的sync_statuss条件,确保分页逻辑正确

pull/1/head
Trae AI 2 months ago
parent
commit
8850e9d352
  1. 3
      web/src/main/resources/mapper/UsersMapper.xml

3
web/src/main/resources/mapper/UsersMapper.xml

@ -130,8 +130,7 @@
<select id="countAll" resultType="java.lang.Integer"> <select id="countAll" resultType="java.lang.Integer">
SELECT COUNT(*) FROM users u SELECT COUNT(*) FROM users u
JOIN usermanagements um ON u.userId = um.userId JOIN usermanagements um ON u.userId = um.userId
WHERE (u.sync_statuss IS NULL OR u.sync_statuss NOT IN (0, 1)) WHERE u.type != 'Colleague'
AND u.type != 'Colleague'
AND ((um.managercompany IS NOT NULL AND um.managercompany != '') AND ((um.managercompany IS NOT NULL AND um.managercompany != '')
OR (um.managerdepartment IS NOT NULL AND um.managerdepartment != '') OR (um.managerdepartment IS NOT NULL AND um.managerdepartment != '')
OR (um.organization IS NOT NULL AND um.organization != '') OR (um.organization IS NOT NULL AND um.organization != '')

Loading…
Cancel
Save