|
@@ -237,9 +237,9 @@
|
|
|
FROM
|
|
|
sys_user a
|
|
|
LEFT JOIN sys_office b ON a.office_id = b.id
|
|
|
- left join sys_cert sc on a.id = sc.user_id and sc.del_flag = '0'
|
|
|
+ left join sys_cert sc on a.id = sc.user_id and sc.del_flag = '0' and (sc.status = '5' or sc.status IS NULL)
|
|
|
WHERE
|
|
|
- a.del_flag = 0 and a.is_admin is null and a.login_flag = 1 and sc.type = '6' and a.tenant_id = '10003'
|
|
|
+ a.del_flag = 0 and a.is_admin is null and a.login_flag = 1 and sc.type = '6'
|
|
|
<if test="name != null and name != ''">
|
|
|
and a.`name` LIKE CONCAT ('%', #{name}, '%')
|
|
|
</if>
|