|
@@ -1610,7 +1610,6 @@
|
|
|
worker_number_check a
|
|
|
LEFT JOIN admin_websit b on a.websit_id = b.websit_id
|
|
|
LEFT JOIN `user` c on c.nick_name = a.worker_name and RIGHT(c.mobile,4) = RIGHT(a.worker_phone_yun,4)
|
|
|
- LEFT JOIN websit_user d on d.websit_id = a.websit_id and d.user_id = c.user_id
|
|
|
${ex.query}
|
|
|
<if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
|
AND a.websit_id IN
|
|
@@ -1618,11 +1617,36 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ HAVING a.worker_number_yun != c.worker_number or c.worker_number is null
|
|
|
<if test="ex.orderBy == null or ex.orderBy ==''">
|
|
|
ORDER BY a.create_time DESC
|
|
|
</if>
|
|
|
${ex.orderBy}
|
|
|
</select>
|
|
|
+ <select id="workerManagerCheckCount" resultType="java.lang.Integer">
|
|
|
+ SELECT
|
|
|
+ COUNT( 1 )
|
|
|
+ FROM
|
|
|
+ (
|
|
|
+ SELECT
|
|
|
+ a.worker_number_yun,
|
|
|
+ c.worker_number
|
|
|
+ FROM
|
|
|
+ worker_number_check a
|
|
|
+ LEFT JOIN admin_websit b on a.websit_id = b.websit_id
|
|
|
+ LEFT JOIN `user` c on c.nick_name = a.worker_name and RIGHT(c.mobile,4) = RIGHT(a.worker_phone_yun,4)
|
|
|
+ ${ex.query}
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
|
+ AND a.websit_id IN
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ HAVING a.worker_number_yun != c.worker_number or c.worker_number is null
|
|
|
+ ) s
|
|
|
+
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
</mapper>
|