|
|
@@ -1098,9 +1098,9 @@ and
|
|
|
LEFT JOIN sys_user_information b ON a.id = b.user_id
|
|
|
LEFT JOIN sys_org c ON a.org_id = c.id
|
|
|
WHERE
|
|
|
- 1 = 1
|
|
|
- AND b.dept_id = 2
|
|
|
+ a.deleted = 0
|
|
|
AND b.certificate_work = '1'
|
|
|
+ AND b.duties IN ( 2, 4, 5 )
|
|
|
AND a.is_manage = 'Y'
|
|
|
AND c.deleted = 0
|
|
|
and c.is_lock = 0
|
|
|
@@ -1215,6 +1215,7 @@ and
|
|
|
AND a.is_full_time = #{isFull}
|
|
|
AND a.duties in ('1','2','3')
|
|
|
AND b.is_manage = 'Y'
|
|
|
+ AND b.deleted =0
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getManagerCertificate" resultType="java.lang.Integer">
|
|
|
@@ -1231,6 +1232,7 @@ and
|
|
|
AND a.certificate_work = 1
|
|
|
AND a.duties in ('1','2','3')
|
|
|
AND b.is_manage = 'Y'
|
|
|
+ AND b.deleted =0
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getIsMonitor" resultType="java.lang.String">
|
|
|
@@ -1246,6 +1248,7 @@ and
|
|
|
and c.deleted = 0
|
|
|
and c.is_lock = 0
|
|
|
AND b.is_manage = 'Y'
|
|
|
+ AND b.deleted =0
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getMonitorPeople" resultType="java.util.Map">
|