Commit c940c114 authored by 吴琼's avatar 吴琼

添加校验

parent 87737bb3
...@@ -818,8 +818,18 @@ public class UserServiceImpl implements IUserService { ...@@ -818,8 +818,18 @@ public class UserServiceImpl implements IUserService {
} }
} }
if(userByUserId ==null && userDetailByUserId == null && userByPhoneNo == null && userDetailByPhone == null){ //校验手机号查不到用户的情况
return JsonResult.buildErrorStateResult("未查询到对应的用户", null); if (Objects.nonNull(userQueryParam.getUserId())) {
if(userByUserId == null || userDetailByUserId ==null || userByUserId.getData() ==null || userDetailByUserId.getData() ==null){
return JsonResult.buildErrorStateResult("用户不存在", null);
}
}
if (StringUtils.isNotBlank(userQueryParam.getPhoneNo())) {
if(userByPhoneNo == null || userDetailByPhone ==null || userByPhoneNo.getData() ==null || userDetailByPhone.getData() ==null){
return JsonResult.buildErrorStateResult("用户不存在", null);
}
} }
//调用kdsp接口获取会员权益相关信息 //调用kdsp接口获取会员权益相关信息
String url= kdspOperationUrl +"/api/kdsp/op/userBenefits/user-benefits-point/getUserBenefit"; String url= kdspOperationUrl +"/api/kdsp/op/userBenefits/user-benefits-point/getUserBenefit";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment