| | |
| | | public class BaojiGroupController { |
| | | @Autowired |
| | | private BaojigroupService service; |
| | | |
| | | @PostMapping("updateTeamFlag") |
| | | @ApiOperation("设置包机组标记") |
| | | public Response updateTeamFlag(@RequestParam Integer baoJiGroupId,@RequestParam Integer flag){ |
| | | return service.updateTeamFlag(baoJiGroupId,flag); |
| | | } |
| | | @ApiOperation("添加包机组") |
| | | @GetMapping("addBaoji") |
| | | public Response addBaoji(@RequestParam String baojiName) { |
| | |
| | | @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); |
| | | } |
| | | |
| | | |