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