From 7f1aa34efd529fe27dc1e88f51e4bfec4404181a Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Sun, 20 Aug 2023 13:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/linfeng/modules/admin/controller/AppUserController.java | 1 + .../linfeng/modules/admin/service/impl/AppUserServiceImpl.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java index 286a8ed..7d7afe5 100644 --- a/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java +++ b/src/main/java/io/linfeng/modules/admin/controller/AppUserController.java @@ -38,6 +38,7 @@ import io.linfeng.common.utils.R; @RestController @RequestMapping("admin/user") public class AppUserController { + @Autowired private AppUserService appUserService; diff --git a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java index d0ceb45..921a092 100644 --- a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java +++ b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java @@ -201,6 +201,7 @@ public class AppUserServiceImpl extends ServiceImpl i } @Override + @Transactional(rollbackFor = Exception.class) public void updateAppUserInfo(AppUserUpdateForm appUserUpdateForm, AppUserEntity user) { if (!ObjectUtil.isEmpty(appUserUpdateForm.getAvatar())) { user.setAvatar(appUserUpdateForm.getAvatar());