OA板块整合与实现

This commit is contained in:
lijiaqi 2023-02-24 17:05:20 +08:00
parent 559023e1ce
commit 5c6d551d8a
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ public class UserServiceImpl extends BaseService<UserMapper, User> implements IU
public AjaxResult editImage(ImageRequest imageRequest) { public AjaxResult editImage(ImageRequest imageRequest) {
User user = getById(StpUtil.getLoginIdAsString()); User user = getById(StpUtil.getLoginIdAsString());
if (ObjectUtil.isNull(user)) return AjaxResult.fail("该用户不存在"); if (ObjectUtil.isNull(user)) return AjaxResult.fail("该用户不存在");
BeanUtil.copyProperties(user, imageRequest); BeanUtil.copyProperties(imageRequest, user);
boolean flag = updateById(user); boolean flag = updateById(user);
return flag ? AjaxResult.ok().msg("更换头像成功") : AjaxResult.fail("更换头像失败"); return flag ? AjaxResult.ok().msg("更换头像成功") : AjaxResult.fail("更换头像失败");
} }