| | |
| | | import java.util.*; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.mapper.UserMapper; |
| | | import com.yuanchu.limslaboratory.pojo.Inspection; |
| | | import com.yuanchu.limslaboratory.pojo.Report; |
| | |
| | | @ApiImplicitParam(name = "message", value = "申请单号/原材料名称", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectInspectsList") |
| | | @AuthHandler |
| | | public Result selectInspectsList(int pageSize, int countSize, String message) { |
| | | IPage<Map<String, Object>> inspectionPage = inspectionService.selectInspectsList(new Page<Object>(pageSize, countSize), message); |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | @ApiImplicitParam(name = "type", value = "类型", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/selectAll") |
| | | @AuthHandler |
| | | public Result selectAll(Integer type) { |
| | | switch (type) { |
| | | case 0: |
| | |
| | | @ApiImplicitParam(name = "specifications", value = "规格型号", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @GetMapping("/chooseVer") |
| | | @AuthHandler |
| | | public Result chooseVer(String name, String mcode, String specifications) { |
| | | return Result.success(inspectionService.chooseVer(name, mcode, specifications)); |
| | | } |
| | |
| | | @ApiImplicitParam(name = "experiment", value = "试验项目(委托专属)", dataTypeClass = String.class ) |
| | | }) |
| | | @GetMapping("/lookProByVer") |
| | | @AuthHandler |
| | | public Result lookProByVer(String name, String mcode, String specifications,Integer version,String experiment) { |
| | | return Result.success(inspectionService.lookProByVer(name, mcode, specifications,version,experiment)); |
| | | } |