...
This commit is contained in:
parent
35d08fe63f
commit
d177a351ac
|
@ -100,7 +100,7 @@ public class SysAuditTeamController {
|
||||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||||
dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音
|
dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音
|
||||||
dto.setMember(dto.getMember().stream().map(index -> {
|
dto.setMember(dto.getMember().stream().map(index -> {
|
||||||
Optional<SysUserDTO> sysUserDTO = Optional.ofNullable(sysUserService.get((long) index.get("id")));
|
Optional<SysUserDTO> sysUserDTO = Optional.ofNullable(sysUserService.get(Long.parseLong(index.get("id").toString())));
|
||||||
if (sysUserDTO.isPresent()) {
|
if (sysUserDTO.isPresent()) {
|
||||||
index.put("name", sysUserDTO.get().getRealName());
|
index.put("name", sysUserDTO.get().getRealName());
|
||||||
index.put("dept_name", sysUserDTO.get().getDeptName());
|
index.put("dept_name", sysUserDTO.get().getDeptName());
|
||||||
|
|
Loading…
Reference in New Issue