patch: 错误返回信息修改
Some checks failed
代码检查 / 代码检查 (push) Failing after 21s

This commit is contained in:
筱锋xiao_lfeng 2024-04-15 15:37:08 +08:00
parent 0eaf43c764
commit 102b900e55
Signed by: XiaoLFeng
GPG Key ID: F693AA12AABBFA87

View File

@ -262,7 +262,7 @@ public class UserServiceImpl implements UserService {
UserDO userDO = userDAO.getUserById(Processing.getAuthHeaderToUserId(request)); UserDO userDO = userDAO.getUserById(Processing.getAuthHeaderToUserId(request));
UserProfileVo userProfileVo = new UserProfileVo(); UserProfileVo userProfileVo = new UserProfileVo();
Processing.copyProperties(userDO, userProfileVo); Processing.copyProperties(userDO, userProfileVo);
userProfileVo.setRole(roleDAO.getRoleNameByUid(userDO.getId()).getDisplayName()); userProfileVo.setRole(roleDAO.getRoleNameByUid(userDO.getId()).getRoleName());
userProfileVo.setSex(Processing.getSex(userDO.getSex())); userProfileVo.setSex(Processing.getSex(userDO.getSex()));
return ResultUtil.success(userProfileVo); return ResultUtil.success(userProfileVo);
} }