| | |
| | | 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 = "提交") |
| | |
| | | @ValueClassify("报告编制") |
| | | @ApiOperation(value = "批准") |
| | | @PostMapping("/ratifyReport") |
| | | public Result ratifyReport(Integer id, Integer isRatify, String ratifyTell) { |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); |
| | | public Result ratifyReport(Integer id, Integer isRatify, String ratifyTell,String sealUrl) { |
| | | return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell,sealUrl)); |
| | | } |
| | | |
| | | @RequestMapping("/onlyOffice/save") |
| | |
| | | public Result upAll(MultipartFile file) throws IOException { |
| | | return Result.success(insReportService.upAll(file)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "查出该订单下每个样品下每个站点的检验次数") |
| | | @GetMapping("/getInsOrderStateCount") |
| | | public Result getInsOrderStateCount(Integer id,Integer sampleId){ |
| | | return Result.success(insReportService.getInsOrderStateCount(id,sampleId)); |
| | | } |
| | | |
| | | //取消2.26 |
| | | @ValueClassify("报告编制") |
| | | @ApiOperation(value = "判断是否生成总报告") |
| | | @PostMapping("/isReport") |
| | | public Result isReport(@RequestBody InsReportDto insReportDto) { |
| | | return Result.success(insReportService.isReport(insReportDto)); |
| | | } |
| | | } |