| | |
| | | package com.yuanchu.limslaboratory.controller; |
| | | |
| | | |
| | | import com.yuanchu.limslaboratory.pojo.InspectionProductList; |
| | | import com.yuanchu.limslaboratory.pojo.User; |
| | | import com.yuanchu.limslaboratory.pojo.dto.InspectionProductListDto; |
| | | import com.yuanchu.limslaboratory.service.InspectionProductListService; |
| | | import com.yuanchu.limslaboratory.service.UserService; |
| | | import com.yuanchu.limslaboratory.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @author 江苏鵷雏网络科技有限公司 |
| | | * @since 2023-07-17 |
| | | */ |
| | | @Api(tags = "检验模块-->分配计划-->检验项目") |
| | | @Api(tags = "检验模块-->检验样品-->检验项目") |
| | | @RestController |
| | | @RequestMapping("/inspection-product-list") |
| | | public class InspectionProductListController { |
| | | |
| | | @Resource |
| | | UserService userService; |
| | | |
| | | @Resource |
| | | InspectionProductListService inspectionProductListService; |
| | | |
| | | @ApiOperation("查询试验员信息") |
| | | @GetMapping("/selectUser") |
| | |
| | | public Result selectUserById(Integer id) { |
| | | return Result.success(userService.selectByUserId(id)); |
| | | } |
| | | |
| | | @ApiOperation("根据检验计划样品id查询检验项目") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "样品id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/selectProductById/{id}") |
| | | public Result selectProductById(@PathVariable Integer id) { |
| | | return Result.success(inspectionProductListService.selectProductById(id)); |
| | | } |
| | | |
| | | } |