| | |
| | | @GetMapping(value = "/exportInspection") |
| | | public R<String> exportInspection(@RequestParam String id) { |
| | | TSysInspection sysInspection = sysInspectionService.getById(id); |
| | | if(StringUtils.hasLength(sysInspection.getDetectionPdf())){ |
| | | return R.ok(sysInspection.getDetectionPdf()); |
| | | } |
| | | // 查询诊所信息 |
| | | TCrmClinic crmClinic = crmClinicService.getById(sysInspection.getClinicId()); |
| | | if(Objects.isNull(crmClinic)){ |
| | |
| | | // templateParam, |
| | | // "病历-样例-temp", |
| | | // "E:\\WXWork\\1688857451467088\\Cache\\File\\2026-01\\"); |
| | | sysInspection.setDetectionPdf(url); |
| | | sysInspectionService.updateById(sysInspection); |
| | | return R.ok(url); |
| | | } |
| | | |
| | |
| | | @GetMapping(value = "/exportPrescription") |
| | | public R<String> exportPrescription(@RequestParam String id) { |
| | | TSysInspection sysInspection = sysInspectionService.getById(id); |
| | | if(StringUtils.hasLength(sysInspection.getPrescriptionPdf())){ |
| | | return R.ok(sysInspection.getPrescriptionPdf()); |
| | | } |
| | | // 查询诊所信息 |
| | | TCrmClinic crmClinic = crmClinicService.getById(sysInspection.getClinicId()); |
| | | if(Objects.isNull(crmClinic)){ |
| | |
| | | // templateParam, |
| | | // "处方单-"+sysInspection.getNickName(), |
| | | // "E:\\WXWork\\1688857451467088\\Cache\\File\\2026-01\\"); |
| | | sysInspection.setPrescriptionPdf(url); |
| | | sysInspectionService.updateById(sysInspection); |
| | | return R.ok(url); |
| | | } |
| | | |