|
@@ -944,7 +944,14 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
|
|
|
if(Validator.isEmpty(phoneBo.getTelphone())){
|
|
|
throw new CustomException("账号不能为空");
|
|
|
}
|
|
|
- User user = baseMapper.queryUserByTelphoneTenant(phoneBo.getTelphone(), phoneBo.getTenantId());
|
|
|
+ User user;
|
|
|
+ if (StringUtils.isNotBlank(phoneBo.getIdNum())){
|
|
|
+ //身份证登入
|
|
|
+ user = baseMapper.queryUserByIdNumTenant(phoneBo.getIdNum(), phoneBo.getTenantId());
|
|
|
+ }else {
|
|
|
+ user = baseMapper.queryUserByTelphoneTenant(phoneBo.getTelphone(), phoneBo.getTenantId());
|
|
|
+ }
|
|
|
+
|
|
|
if(Validator.isEmpty(user)){
|
|
|
throw new CustomException("该账号不存在");
|
|
|
}
|