优化
This commit is contained in:
parent
c2c80863b7
commit
7f1aa34efd
@ -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;
|
||||||
|
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user