| | |
| | | @GetMapping("/downFile") |
| | | public Result<?> downFile(Integer id) { |
| | | InsOrderFile insOrderFile = insOrderFileService.getById(id); |
| | | if (insOrderFile == null) { |
| | | return Result.fail("附件不存在或已被删除"); |
| | | } |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("type", insOrderFile.getType()); |
| | | map.put("fileUrl", insOrderFile.getFileUrl()); |
| | | map.put("fileName", insOrderFile.getFileName()); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @Operation(summary = "填写温度与湿度") |
| | | @Operation(summary = "填写温度") |
| | | @PostMapping("/write") |
| | | public Result<?> write(@RequestBody WriteInspectionConditionDto dto) { |
| | | return Result.success(insProductService.write(dto)); |