This commit is contained in:
linfeng 2023-08-20 13:58:08 +08:00
parent c2c80863b7
commit 7f1aa34efd
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ import io.linfeng.common.utils.R;
@RestController
@RequestMapping("admin/user")
public class AppUserController {
@Autowired
private AppUserService appUserService;

View File

@ -201,6 +201,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
}
@Override
@Transactional(rollbackFor = Exception.class)
public void updateAppUserInfo(AppUserUpdateForm appUserUpdateForm, AppUserEntity user) {
if (!ObjectUtil.isEmpty(appUserUpdateForm.getAvatar())) {
user.setAvatar(appUserUpdateForm.getAvatar());