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);