| | |
| | | @PostMapping("updateStationList") |
| | | @ApiOperation(value = "包机组添加机房和电源|移除机房和电源",notes = "operationFlag为1,添加;-1,移除") |
| | | public Response updateStationAndLockList(@RequestBody List<BaojigroupPower> baoJiGroupLockList, @RequestParam int operationFlag){ |
| | | service.updateStationAndLockList(baoJiGroupLockList,operationFlag); |
| | | if(operationFlag==1) { |
| | | return new Response().set(1, true,"添加成功"); |
| | | }else{ |
| | | return new Response().set(1,true,"移除成功"); |
| | | } |
| | | |
| | | return service.updateStationAndLockList(baoJiGroupLockList,operationFlag); |
| | | } |
| | | |
| | | |