whyclxw
6 天以前 5720a0b6cb13fcecc7fb810c7a7f0ad124ce6048
src/main/java/com/whyc/controller/BaojiGroupController.java
@@ -21,6 +21,12 @@
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) {
@@ -66,13 +72,7 @@
    @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);
    }