| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.yuanchu.limslaboratory.pojo.Inspection; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | |
| | | public Result distribution(Integer id, Integer userId, Integer instrumentId) { |
| | | return Result.success(planService.distribution(id, userId, instrumentId)); |
| | | } |
| | | |
| | | @ApiOperation("检验") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "检验项目id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "value", value = "检验值", dataTypeClass = String.class) |
| | | }) |
| | | @PostMapping("/check") |
| | | public Result check(Integer id, String value) { |
| | | return Result.success(planService.check(id, value)); |
| | | } |
| | | |
| | | @ApiOperation("上报") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "检验单id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/reported") |
| | | public Result reported(Integer id) { |
| | | return Result.success(planService.reported(id)); |
| | | } |
| | | } |