소스 검색

修改人员采集登录bug2

hjc 1 년 전
부모
커밋
8f95f7cf3a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      unis-plugin/unis-plugin-auth/src/main/java/com/unis/auth/modular/login/service/impl/AuthServiceImpl.java

+ 2 - 1
unis-plugin/unis-plugin-auth/src/main/java/com/unis/auth/modular/login/service/impl/AuthServiceImpl.java

@@ -658,7 +658,8 @@ public class AuthServiceImpl implements AuthService {
658 658
 
659 659
         //查询表中是否已注册
660 660
         List<UserCollectLogin> userCollectLogins = userCollectLoginMapper.selectList(new LambdaQueryWrapper<UserCollectLogin>()
661
-                .eq(UserCollectLogin::getPhone, phone));
661
+                .eq(UserCollectLogin::getPhone, phone)
662
+                .in(UserCollectLogin::getType,2,3));
662 663
 
663 664
         if (CollectionUtil.isNotEmpty(userCollectLogins)) {
664 665
             throw new CommonException(AuthExceptionEnum.USER_IN.getValue());