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