| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "选择原材料报检") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "原材料报检单id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "startTime", value = "检验开始日期", dataTypeClass = String.class, required = true), |
| | | @ApiImplicitParam(name = "endTime", value = "检验结束日期", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @GetMapping("/selectRawmaById") |
| | | public Result selectRawmaById(Integer id, String startTime, String endTime) throws ParseException { |
| | | return Result.success(rawMaterialService.selectRawmaById(id, startTime, endTime)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "选择委托报检和样品") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "bid", value = "委托报检单id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "did", value = "委托报检样品id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | |
| | | |
| | | @GetMapping("/selectLinkByid") |
| | | public Result selectLinkByid(Integer bid, Integer did) { |
| | | return Result.success(linkBasicInformationService.selectLinkByid(bid, did)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "新增检验单") |
| | | @PostMapping("/addInspect") |
| | | public Result addInspect(@RequestHeader("token") String token, @RequestBody InspectionVo inspectionVo) throws Exception { |
| | |
| | | return Result.success(inspectionService.addInspect((Integer) unmarshal.get("id"), inspectionVo)); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据检验单id查询原材料检验单详情") |
| | | @ApiOperation(value = "根据检验单id查询检验单详情") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "检验单id", dataTypeClass = Integer.class, required = true) |
| | | }) |