| | |
| | | return new QueryListResponseResult<>(CommonCode.SUCCESS, list); |
| | | } |
| | | |
| | | @AutoLog(value = "设备分组表-给分组分配部门权限") |
| | | @ApiOperation(value = "设备分组表-给分组分配部门权限", notes = "设备分组表-给分组分配部门权限") |
| | | @PostMapping("/assign/add/depart/{groupId}/{relativeFlag}") |
| | | public ResponseResult assignAddDepartment(@PathVariable("groupId") String groupId, @PathVariable("relativeFlag") Integer relativeFlag, @RequestBody String[] departmentIds) { |
| | | boolean b = deviceGroupService.assignAddDepartment(groupId, relativeFlag, departmentIds); |
| | | if(b) { |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | } |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | |
| | | @AutoLog(value = "设备分组表-移除分组分配部门权限") |
| | | @ApiOperation(value = "设备分组表-移除分组分配部门权限", notes = "设备分组表-移除分组分配部门权限") |
| | | @PostMapping("/assign/remove/depart/{groupId}/{relativeFlag}") |
| | | public ResponseResult assignRemoveDepartment(@PathVariable("groupId") String groupId, @PathVariable("relativeFlag") Integer relativeFlag, @RequestBody String[] departmentIds) { |
| | | boolean b = deviceGroupService.assignRemoveDepartment(groupId, relativeFlag, departmentIds); |
| | | if(b) { |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | } |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | // @AutoLog(value = "设备分组表-给分组分配部门权限") |
| | | // @ApiOperation(value = "设备分组表-给分组分配部门权限", notes = "设备分组表-给分组分配部门权限") |
| | | // @PostMapping("/assign/add/depart/{groupId}/{relativeFlag}") |
| | | // public ResponseResult assignAddDepartment(@PathVariable("groupId") String groupId, @PathVariable("relativeFlag") Integer relativeFlag, @RequestBody String[] departmentIds) { |
| | | // boolean b = deviceGroupService.assignAddDepartment(groupId, relativeFlag, departmentIds); |
| | | // if(b) { |
| | | // return new ResponseResult(CommonCode.SUCCESS); |
| | | // } |
| | | // return new ResponseResult(CommonCode.FAIL); |
| | | // } |
| | | // |
| | | // @AutoLog(value = "设备分组表-移除分组分配部门权限") |
| | | // @ApiOperation(value = "设备分组表-移除分组分配部门权限", notes = "设备分组表-移除分组分配部门权限") |
| | | // @PostMapping("/assign/remove/depart/{groupId}/{relativeFlag}") |
| | | // public ResponseResult assignRemoveDepartment(@PathVariable("groupId") String groupId, @PathVariable("relativeFlag") Integer relativeFlag, @RequestBody String[] departmentIds) { |
| | | // boolean b = deviceGroupService.assignRemoveDepartment(groupId, relativeFlag, departmentIds); |
| | | // if(b) { |
| | | // return new ResponseResult(CommonCode.SUCCESS); |
| | | // } |
| | | // return new ResponseResult(CommonCode.FAIL); |
| | | // } |
| | | |
| | | |
| | | } |