From 316cafe9a0ca08aea3e89eeec47605c057020c80 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Tue, 9 May 2023 15:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E4=BF=AE=E6=94=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/api/controller/auth/SysUserController.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/auth/SysUserController.java b/src/main/java/com/glxp/api/controller/auth/SysUserController.java index 35b8f1b8..1c0073e6 100644 --- a/src/main/java/com/glxp/api/controller/auth/SysUserController.java +++ b/src/main/java/com/glxp/api/controller/auth/SysUserController.java @@ -291,8 +291,13 @@ public class SysUserController extends BaseController { if (!b) { return ResultVOUtils.error(ResultEnum.NOT_NETWORK); } -// 修改角色 - userService.insertUserAuth(authAdmin.getId(), authUserSaveRequest.getRoles()); + +// 修改角色(供应商账号) + AuthAdmin byId = userService.findById(authUserSaveRequest.getId()); + if("110".equals(byId.getCustomerId())){ + userService.insertUserAuth(authAdmin.getId(), authUserSaveRequest.getRoles()); + } + userService.updateAuthAdmin(authAdmin);