Commit 6fe052f0 authored by xiaozhe.chen's avatar xiaozhe.chen

修改用户查询

parent c2fdfd02
......@@ -216,8 +216,17 @@ public class UserServiceImpl implements IUserService {
if (StringUtils.isNotBlank(userQueryParam.getIdNo())) {
//通过业务系统获得
log.info("{} 通过phoneNo查询 idNo={}", LOG_PRE, userQueryParam.getIdNo());
JsonResult userDetailResult = findUserDetailByIdNo(userQueryParam.getIdNo());
if (StringUtils.isNotEmpty(userQueryParam.getPhoneNo()) && userDetailResult.isSuccess() && userDetailResult.getData() != null) {
UserBasicInfo userBasicInfo = (UserBasicInfo) userDetailResult.getData();
String phoneNo = userBasicInfo.getPhoneNo();
String paramPhoneNo = userQueryParam.getPhoneNo();
if (!paramPhoneNo.equals(phoneNo)) {
return JsonResult.buildErrorStateResult("无有效查询参数", null);
}
}
return findUserDetailByIdNo(userQueryParam.getIdNo());
return userDetailResult;
}
return JsonResult.buildErrorStateResult("无有效查询参数", null);
......
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