From 74e1420a36e07d136ffa0089ae21c87776d1ea6b Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 16 Dec 2022 18:33:46 +0800 Subject: [PATCH] ... --- .../modules/audit_team/controller/SysAuditTeamController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java b/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java index e2ab36ed..e366eb48 100644 --- a/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java +++ b/renren-admin/src/main/java/io/renren/modules/audit_team/controller/SysAuditTeamController.java @@ -80,7 +80,7 @@ public class SysAuditTeamController { ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音 dto.setMember(dto.getMember().stream().map(index -> { - Optional sysUserDTO = Optional.ofNullable(sysUserService.get(Long.parseLong((String) index.get("id")))); + Optional sysUserDTO = Optional.ofNullable(sysUserService.get(Long.parseLong(index.get("id").toString()))); index.put("id", Long.parseLong((String) index.get("id"))); if (sysUserDTO.isPresent()) { index.put("name", sysUserDTO.get().getRealName()); @@ -101,7 +101,7 @@ public class SysAuditTeamController { ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); dto.setIndex(CommonUtils.getPinYinHeadChar(dto.getName())); // 索引设置为名称拼音 dto.setMember(dto.getMember().stream().map(index -> { - Optional sysUserDTO = Optional.ofNullable(sysUserService.get(Long.parseLong((String) index.get("id")))); + Optional sysUserDTO = Optional.ofNullable(sysUserService.get(Long.parseLong(index.get("id").toString()))); index.put("id", Long.parseLong((String) index.get("id"))); if (sysUserDTO.isPresent()) { index.put("name", sysUserDTO.get().getRealName());