fixed: contains unreadable message on job column when download users as .xlsx

pull/372/head
Wentao chang 2020-05-25 11:14:37 +08:00
parent 0f9a9b1c83
commit d393ff1bb2
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ public class UserServiceImpl implements UserService {
map.put("用户名", userDTO.getUsername());
map.put("角色", roles);
map.put("部门", userDTO.getDept().getName());
map.put("岗位", userDTO.getJobs().stream().map(JobSmallDto::getName).toString());
map.put("岗位", userDTO.getJobs().stream().map(JobSmallDto::getName).collect(Collectors.toList()));
map.put("邮箱", userDTO.getEmail());
map.put("状态", userDTO.getEnabled() ? "启用" : "禁用");
map.put("手机号码", userDTO.getPhone());