‘linchangsheng’ 7 달 전
부모
커밋
7273082064
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

+ 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("拥有多个师傅编号");
+
     }