Commit 9c72c4ae authored by yajun.zhang's avatar yajun.zhang

优化

parent 0cfcb633
...@@ -116,7 +116,11 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService { ...@@ -116,7 +116,11 @@ public class ThirdWorkOrderServiceImpl implements IThirdWorkOrderService {
} }
//查询用户名称 //查询用户名称
List<LhpdsSysUser> userList = lhpdsSysUserRepo.getUserByAccountIdList(new ArrayList<>(userSet)); List<LhpdsSysUser> userList = new ArrayList<>();
if (CollectionUtils.isNotEmpty(userSet)){
userList = lhpdsSysUserRepo.getUserByAccountIdList(new ArrayList<>(userSet));
}
Map<String,String> userNameMap = userList.stream().collect( Map<String,String> userNameMap = userList.stream().collect(
Collectors.toMap(LhpdsSysUser::getAccountId, LhpdsSysUser::getNickname,(key1,key2)->key2)); Collectors.toMap(LhpdsSysUser::getAccountId, LhpdsSysUser::getNickname,(key1,key2)->key2));
......
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