| | |
| | | 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; |
| | |
| | | } |
| | | @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 = "查看详情") |
| | |
| | | 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); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |