|
@@ -38,7 +38,7 @@
|
|
|
where (u.bindMobile = #{mobileOrEmail}
|
|
|
or u.email = #{mobileOrEmail}
|
|
|
or (cu.mobile = #{mobileOrEmail} and cu.delFlag != 1)
|
|
|
- ) and u.userIdentity in (1,2,3,4)
|
|
|
+ ) and u.userIdentity in (1,2,3,4) and u.userOrganizeID = 0
|
|
|
limit 1
|
|
|
</select>
|
|
|
<select id="getOperationByMobile" resultType="com.caimei365.user.model.po.OperationPo">
|
|
@@ -83,7 +83,7 @@
|
|
|
from
|
|
|
cm_mall_operation_user o
|
|
|
where unionId = #{unionId} and delFlag = '0'
|
|
|
- and (userOrganizeID='2' or userOrganizeID is null)
|
|
|
+ and userOrganizeID=0
|
|
|
limit 1
|
|
|
</select>
|
|
|
<select id="getOperationUserByOpenId" resultType="com.caimei365.user.model.vo.UserLoginVo">
|
|
@@ -114,7 +114,7 @@
|
|
|
openid = #{openId}
|
|
|
</if>
|
|
|
and delFlag = '0'
|
|
|
- and (userOrganizeID='2' or userOrganizeID is null)
|
|
|
+ and userOrganizeID=0
|
|
|
limit 1
|
|
|
</select>
|
|
|
<update id="updateServiceProviderUnionId">
|
|
@@ -186,7 +186,7 @@
|
|
|
openid = #{openId}
|
|
|
</if>
|
|
|
and delFlag = '0'
|
|
|
- and (userOrganizeID='2' or userOrganizeID is null)
|
|
|
+ and userOrganizeID=0
|
|
|
limit 1
|
|
|
</select>
|
|
|
|
|
@@ -210,7 +210,7 @@
|
|
|
LEFT JOIN user u ON u.userID = cou.userID
|
|
|
WHERE
|
|
|
cou.invitationCode = #{invitationCode}
|
|
|
- AND (cou.userOrganizeID = '2' OR cou.userOrganizeID IS NULL)
|
|
|
+ AND cou.userOrganizeID = 0
|
|
|
AND u.userIdentity in (2,3,4)
|
|
|
</select>
|
|
|
<select id="getClubCountByClubName" resultType="java.lang.Integer">
|