zhongrj
2024-04-16 0415473b4ba34d19b96c9f9491a7f01d1ebc813b
src/main/java/org/springblade/modules/place/service/impl/PlaceServiceImpl.java
@@ -724,18 +724,9 @@
         placeVO.setPrincipal(placeVO.getPrincipal());
         placeVO.setPrincipalPhone(placeVO.getPrincipalPhone());
         //根据手机号查询库里的数据
         User userParams = new User();
         userParams.setPhone(placeVO.getPrincipalPhone());
         userParams.setIsDeleted(0);
         User user = userService.getOne(Condition.getQueryWrapper(userParams));
         if (null == user) {
            User userParams1 = new User();
            userParams1.setAccount(placeVO.getPrincipalPhone());
            userParams1.setIsDeleted(0);
            user = userService.getOne(Condition.getQueryWrapper(userParams1));
         }
         if (null != user) {
         List<User> list = userService.getUserListByPhoneOrAccount(placeVO.getPrincipalPhone());
         if (list.size()>0) {
            User user = list.get(0);
            //如果用户存在,则该用户id绑定场所
            placeVO.setPrincipalUserId(user.getId());
            newUser = user;