huangzhiguo 1 năm trước cách đây
mục cha
commit
60410463cf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/main/resources/mapper/LoginMapper.xml

+ 2 - 0
src/main/resources/mapper/LoginMapper.xml

@@ -44,6 +44,7 @@
         from user u
         left join cm_mall_operation_user cu on cu.userID = u.userID
         where (u.bindMobile = #{mobileOrEmail} or u.email = #{mobileOrEmail})
+            and IF (u.userIdentity = 3, u.manufacturerStatus = 90, 1=1)
             and u.userIdentity in (1, 2, 3, 4)
             and u.userOrganizeID = 0
         union
@@ -70,6 +71,7 @@
         LEFT JOIN cm_mall_operation_user cu ON cu.userID = u.userID
         WHERE
             cu.mobile = #{mobileOrEmail}
+          and IF (u.userIdentity = 3, u.manufacturerStatus = 90, 1=1)
           and cu.delFlag != 1
           AND u.userIdentity IN (1, 2, 3, 4)
           AND u.userOrganizeID = 0