角色修改问题

pro
wangwei 2 years ago
parent 0f903962a3
commit 316cafe9a0

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

Loading…
Cancel
Save