‘linchangsheng’ 4 mesiacov pred
rodič
commit
84add29721

+ 1 - 1
mall-server-api/src/main/resources/mapper/CommonMapper.xml

@@ -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,6 +1617,7 @@
                 #{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>