‘linchangsheng’ 7 ヶ月 前
コミット
7273082064

+ 4 - 3
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

@@ -385,9 +385,11 @@ public class UserLogic {
                 userWait.setEndTime(DateUtil.parse(hightEndTime, "yyyy-MM-dd"));
                 userWait.setHightExamineTime(DateUtil.parse(hightExamineTime, "yyyy-MM-dd"));
             }
-            
 
 
+            if (userWaitService.lambdaQuery().in(UserWait::getMobile,userWait.getMobile()).eq(UserWait::getWebsitId,userWait.getWebsitId()).count()
+                    > 1)
+                throw new RemoteServiceException(userWait.getMobile()+"拥有这个网点");
 
 
             userWaits.add(userWait);
@@ -396,8 +398,7 @@ public class UserLogic {
 
         List<String> stringList = userWaits.stream().map(UserWait::getMobile).collect(Collectors.toList());
 
-        if (userWaitService.lambdaQuery().in(UserWait::getMobile,stringList).count() > stringList.stream().count())
-            throw new RemoteServiceException("拥有多个师傅编号");
+
     }