| | |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.InspectionProductList; |
| | | import com.yuanchu.limslaboratory.pojo.dto.InspectionProductListDto; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | return Result.success(planService.selectAllPlan(pageSize, countSize, state)); |
| | | } |
| | | |
| | | @ApiOperation("查询检验计划里面的检验项目") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "样品id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/selectProductById/{id}") |
| | | public Result selectProductById(@PathVariable Integer id) { |
| | | return Result.success(planService.selectProductById(id)); |
| | | } |
| | | |
| | | @ApiOperation("分配检验计划中分配项目") |
| | | @PostMapping("/upPlan") |
| | | public Result upPlan(@RequestBody InspectionProductList inspectionProductList) { |
| | | planService.upPlan(inspectionProductList); |
| | | public Result upPlan(@RequestBody InspectionProductListDto inspectionProductListDto) { |
| | | planService.upPlan(inspectionProductListDto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("作废检验计划") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "检验计划ID", dataTypeClass = Integer.class, required = true), |