OA板块整合与实现
This commit is contained in:
parent
559023e1ce
commit
5c6d551d8a
|
@ -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("更换头像失败");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue