Commit 9bf53ffc authored by xiaoguang.xu's avatar xiaoguang.xu

fix : userDetail表的user可能为空

parent 1c73a205
......@@ -648,7 +648,7 @@ public class InnerController implements IBaseController {
if (phoneNoValid && idNoValid) {
List<UserDetail> userDetailList = userDetailService.fuzzyQueryByPhoneNoAndIdNo(phoneNo, idNo);
if (StringUtils.isNotEmpty(userName)) {
userDetailList = userDetailList.stream().filter(userDetail -> userDetail.getName().equals(userName)).collect(Collectors.toList());
userDetailList = userDetailList.stream().filter(userDetail -> userName.equals(userDetail.getName())).collect(Collectors.toList());
}
return JsonResult.buildSuccessResult("success", userDetailList);
}
......
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