Commit faebb174 authored by 技术部-任文超's avatar 技术部-任文超

isNotBlank

parent 7f4ecacf
...@@ -651,7 +651,7 @@ public class InnerController implements IBaseController { ...@@ -651,7 +651,7 @@ public class InnerController implements IBaseController {
userDetailList = userDetailService.findByPhoneNoStartingWith(phoneNo); userDetailList = userDetailService.findByPhoneNoStartingWith(phoneNo);
} }
// 如果传入姓名,则进行过滤 // 如果传入姓名,则进行过滤
if (!CollectionUtils.isEmpty(userDetailList) && StringUtils.isNotEmpty(userName)) { if (!CollectionUtils.isEmpty(userDetailList) && StringUtils.isNotBlank(userName)) {
userDetailList = userDetailList.stream().filter(userDetail -> Objects.equals(userName, userDetail.getName())).collect(Collectors.toList()); userDetailList = userDetailList.stream().filter(userDetail -> Objects.equals(userName, userDetail.getName())).collect(Collectors.toList());
} }
return JsonResult.buildSuccessResult("success", userDetailList); 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