gongdecai 3 年之前
父节点
当前提交
5fc1cfb541

+ 2 - 2
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/CommonUserServiceImpl.java

@@ -238,7 +238,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
         userRedisTemplate.opsForValue().set(Const.USER_REDIS_PREFIX + accessToken, JSONObject.toJSONString(userDTO));
         this.updateById(userDO);
         List<IdentityAuthenticationInfo> identityAuthenticationInfos = iIdentityAuthenticationInfoService.selectList(new EntityWrapper<IdentityAuthenticationInfo>().eq("customer_phone",userDTO.getPhone())
-        .eq("delete_flag","0"));
+                .eq("delete_flag","0").eq("authentication_status","7"));
         userDTO.setIdentityAuthenticationInfoList(identityAuthenticationInfos);
         return userDTO;
     }
@@ -307,7 +307,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
         userRedisTemplate.opsForValue().set(Const.USER_REDIS_PREFIX + accessToken, JSONObject.toJSONString(user));
         this.updateById(userDO);
         List<IdentityAuthenticationInfo> identityAuthenticationInfos = iIdentityAuthenticationInfoService.selectList(new EntityWrapper<IdentityAuthenticationInfo>().eq("customer_phone",userDTO.getPhone())
-                .eq("delete_flag","0"));
+                .eq("delete_flag","0").eq("authentication_status","7"));
         user.setIdentityAuthenticationInfoList(identityAuthenticationInfos);
         return user;
     }