|
|
@@ -1101,7 +1101,7 @@ and a.org_path LIKE concat(#{orgPath}, '%')
|
|
|
sys_user_information a
|
|
|
LEFT JOIN sys_user b ON a.user_id = b.id
|
|
|
LEFT JOIN sys_org c ON b.org_id = c.id
|
|
|
- WHERE c.deleted = 0 and a.alone_dept='Y' AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
+ WHERE c.deleted = 0 and a.alone_dept='Y' and b.is_manage = 'Y' AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getManager" resultType="java.lang.Integer">
|
|
|
SELECT
|
|
|
@@ -1115,6 +1115,7 @@ and a.org_path LIKE concat(#{orgPath}, '%')
|
|
|
AND c.deleted = 0
|
|
|
AND a.is_full_time = #{isFull}
|
|
|
AND a.duties in ('1','2','3')
|
|
|
+ AND b.is_manage = 'Y'
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getManagerCertificate" resultType="java.lang.Integer">
|
|
|
@@ -1129,6 +1130,7 @@ and a.org_path LIKE concat(#{orgPath}, '%')
|
|
|
AND c.deleted = 0
|
|
|
AND a.certificate_work = 1
|
|
|
AND a.duties in ('1','2','3')
|
|
|
+ AND b.is_manage = 'Y'
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getIsMonitor" resultType="java.lang.String">
|
|
|
@@ -1142,6 +1144,7 @@ and a.org_path LIKE concat(#{orgPath}, '%')
|
|
|
WHERE
|
|
|
a.duties = #{duties}
|
|
|
and c.deleted = 0
|
|
|
+ AND b.is_manage = 'Y'
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getMonitorPeople" resultType="java.util.Map">
|
|
|
@@ -1156,6 +1159,7 @@ and a.org_path LIKE concat(#{orgPath}, '%')
|
|
|
WHERE
|
|
|
a.duties IN ( 2, 4, 5 )
|
|
|
AND c.deleted = 0
|
|
|
+ AND b.is_manage = 'Y'
|
|
|
AND c.path LIKE concat(#{orgPath}, '%')
|
|
|
</select>
|
|
|
<select id="getSafeHeadToNetwork" resultType="java.lang.Integer">
|