Browse Source

分销系统V.1.0.0

kaick 1 năm trước cách đây
mục cha
commit
b168084486

+ 1 - 1
src/main/java/com/caimei365/commodity/service/impl/CmReportingClubServiceImpl.java

@@ -165,7 +165,7 @@ public class CmReportingClubServiceImpl implements CmReportingClubService {
      */
     @Override
     public ResponseJson addCmReportingClub(CmReportingClub cmReportingClub) {
-        int userByMobile = cmReportingClubMapper.findUserByMobile(cmReportingClub.mobile(), null, null);
+        int userByMobile = cmReportingClubMapper.findUserByMobile(cmReportingClub.mobile(), null, 8);
         if (userByMobile >0) {
             return ResponseJson.error("抱歉,该手机号已注册!");
         }

+ 2 - 2
src/main/resources/mapper/CmReportingClubMapper.xml

@@ -242,14 +242,14 @@
 	</select>
 
 	<select id="findUserByMobile"  resultType="int">
-		select count (1)
+		select count(1)
 		FROM user user
 		WHERE user.bindMobile=#{mobile}
 		<if test="oldUserId !=null and oldUserId !=''">
 			and user.userId!=#{oldUserId}
 		</if>
 		<if test="userIdentity !=null">
-			and user.userIdentity=#{userIdentity}
+			and user.userIdentity!=#{userIdentity}
 		</if>
 		limit 0,1
 	</select>