| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.mom.annotation.ValueAuth; |
| | | import com.yuanchu.mom.annotation.ValueClassify; |
| | | import com.yuanchu.mom.dto.InsReportDto; |
| | | import com.yuanchu.mom.dto.ReportPageDto; |
| | | import com.yuanchu.mom.exception.ErrorException; |
| | | import com.yuanchu.mom.service.InsReportService; |
| | |
| | | return Result.success(insReportService.upReportUrl(id)); |
| | | } |
| | | |
| | | @ValueClassify("报告编制") |
| | | /*@ValueClassify("报告编制") |
| | | @ApiOperation(value = "报告在线编制") |
| | | @GetMapping("/upReportFile") |
| | | public Result upReportFile() { |
| | | return Result.success(); |
| | | } |
| | | }*/ |
| | | |
| | | @ValueClassify("报告编制") |
| | | @ApiOperation(value = "提交") |
| | |
| | | return Result.success(insReportService.upAll(file)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "查出该订单下每个样品下每个站点的检验次数") |
| | | @GetMapping("/getInsOrderStateCount") |
| | | public Result getInsOrderStateCount(Integer id){ |
| | | return Result.success(insReportService.getInsOrderStateCount(id)); |
| | | } |
| | | |
| | | @ValueClassify("报告编制") |
| | | @ApiOperation(value = "判断是否生成总报告") |
| | | @PostMapping("/isReport") |
| | | public Result isReport(Integer id,Integer state) { |
| | | return Result.success(insReportService.isReport(id,state)); |
| | | public Result isReport(@RequestBody InsReportDto insReportDto) { |
| | | return Result.success(insReportService.isReport(insReportDto)); |
| | | } |
| | | } |