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 @RestController
@RequestMapping("admin/user") @RequestMapping("admin/user")
public class AppUserController { public class AppUserController {
@Autowired @Autowired
private AppUserService appUserService; private AppUserService appUserService;

View File

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