| | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.quality.dto.AutoJudgeAllResponse; |
| | | import com.ruoyi.quality.dto.AutoJudgeRequest; |
| | | import com.ruoyi.quality.dto.AutoJudgeResponse; |
| | | import com.ruoyi.quality.dto.BatchQuickInspectRequest; |
| | | import com.ruoyi.quality.dto.QualityInspectDto; |
| | | import com.ruoyi.quality.pojo.QualityInspect; |
| | |
| | | qualityInspectService.qualityInspectExport(response, qualityInspect); |
| | | } |
| | | |
| | | @GetMapping("/export/weilong/{id}") |
| | | @Operation(summary = "导出伟龙模版检验结果") |
| | | @Log(title = "导出伟龙模版检验结果", businessType = BusinessType.EXPORT) |
| | | public void exportWeiLong(HttpServletResponse response, @PathVariable("id") Long id) { |
| | | qualityInspectService.exportWeiLong(response, id); |
| | | } |
| | | |
| | | /** |
| | | * 提交 |
| | | * |
| | | * @param qualityInspect |
| | | * @return |
| | | */ |
| | | @GetMapping("/export/baishi/{id}") |
| | | @Operation(summary = "导出百事模版检验结果") |
| | | @Log(title = "导出百事模版检验结果", businessType = BusinessType.EXPORT) |
| | | public void exportBaiShi(HttpServletResponse response, @PathVariable("id") Long id) { |
| | | qualityInspectService.exportBaiShi(response, id); |
| | | } |
| | | |
| | | @GetMapping("/export/dali/{id}") |
| | | @Operation(summary = "导出达利模版检验结果") |
| | | @Log(title = "导出达利模版检验结果", businessType = BusinessType.EXPORT) |
| | | public void exportDaLi(HttpServletResponse response, @PathVariable("id") Long id) { |
| | | qualityInspectService.exportDaLi(response, id); |
| | | } |
| | | |
| | | @PostMapping("/submit") |
| | | @Operation(summary = "提交检验") |
| | | @Log(title = "提交检验", businessType = BusinessType.OTHER) |
| | |
| | | public void down(HttpServletResponse response, @RequestBody QualityInspect qualityInspect) { |
| | | qualityInspectService.down(response, qualityInspect); |
| | | } |
| | | |
| | | /** |
| | | * 调试接口:分析模板结构 |
| | | */ |
| | | @GetMapping("/analyzeTemplate") |
| | | @Operation(summary = "分析模板结构(调试)") |
| | | public R<?> analyzeTemplate(@RequestParam String template) { |
| | | String templatePath = "/static/" + template + ".doc"; |
| | | return R.ok(qualityInspectService.analyzeTemplate(templatePath)); |
| | | } |
| | | |
| | | /** |
| | | * 单参数项自动判断 |
| | | */ |
| | | @PostMapping("/autoJudge") |
| | | @Operation(summary = "单参数项自动判断") |
| | | @Log(title = "单参数项自动判断", businessType = BusinessType.OTHER) |
| | | public R<AutoJudgeResponse> autoJudge(@RequestBody AutoJudgeRequest request) { |
| | | return R.ok(qualityInspectService.autoJudge(request)); |
| | | } |
| | | |
| | | /** |
| | | * 整体质检单参数项自动判断 |
| | | */ |
| | | @GetMapping("/autoJudgeAll/{inspectId}") |
| | | @Operation(summary = "整体质检单参数项自动判断") |
| | | @Log(title = "整体质检单参数项自动判断", businessType = BusinessType.OTHER) |
| | | public R<AutoJudgeAllResponse> autoJudgeAll(@PathVariable("inspectId") Long inspectId) { |
| | | return R.ok(qualityInspectService.autoJudgeAll(inspectId)); |
| | | } |
| | | } |