| | |
| | | @ApiOperation("工位状态") |
| | | @PostMapping("/updateSlotState") |
| | | @ResponseBody |
| | | public Result<Boolean> updateSlotState(@RequestBody Integer enableState, Integer slot) { |
| | | public Result<Boolean> updateSlotState(@RequestParam(value = "state")int enableState, @RequestParam(value = "slot")int slot) { |
| | | boolean result = rawGlassStorageStationService.updateSlotState(slot, enableState); |
| | | if (enableState == 1) { |
| | | return Result.build(1, "启用", result); |
| | | return Result.build(200, "启用", result); |
| | | } else { |
| | | return Result.build(0, "禁用", result); |
| | | return Result.build(200, "禁用", result); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |