Skip to content

Commit

Permalink
🐛 修复为角色授予操作权限 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojun1998 committed Jul 10, 2019
1 parent da28b2f commit c8351bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public ResultBean grantMenu(@PathVariable("roleId") Integer roleId, @RequestPara
@OperationLog("为角色授予操作权限")
@PostMapping("/{roleId}/grant/operator")
@ResponseBody
public ResultBean grantOperator(@PathVariable("roleId") Integer roleId, @RequestParam(value = "operatorIds", required = false) Integer[] operatorIds) {
public ResultBean grantOperator(@PathVariable("roleId") Integer roleId, @RequestParam(value = "operatorIds[]", required = false) Integer[] operatorIds) {
for (int i = 0; i < operatorIds.length; i++) {
operatorIds[i] = operatorIds[i] - 10000;
}
Expand Down

0 comments on commit c8351bf

Please sign in to comment.