whycrzg
2021-04-01 3e9ea659ab76fa036390c49ca63e6f64fc451598
src/main/java/com/whyc/controller/TestPlanController.java
@@ -1,6 +1,7 @@
package com.whyc.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.pojo.TestPlan;
import com.whyc.service.TestPlanService;
@@ -25,9 +26,13 @@
    }
    @PostMapping("search")
    @ApiOperation(value = "查询分页-根据筛选条件")
    public Response<IPage<TestPlan>> getPageByCondition(@RequestParam int pageNum,@RequestParam int pageSize,@RequestBody TestPlan testPlan){
    public Response<IPage<TestPlan>> getPageByCondition(@RequestParam int pageNum, @RequestParam int pageSize, @RequestBody TestPlan testPlan){
        return service.getPageByCondition(pageNum,pageSize,testPlan);
    }
    @GetMapping
    @ApiOperation(value = "查看详情")
@@ -52,4 +57,19 @@
        return service.startPlan(num);
    }
    @PutMapping("delete")
    @ApiOperation(value = "删除作废")
    public Response deletePlan(@RequestParam int num){
        return service.deletePlan(num);
    }
    @PutMapping("stop")
    @ApiOperation(value = "停止计划")
    public Response stopPlan(@RequestParam int num){
        return service.stopPlan(num);
    }
}