xuhy
2026-01-19 bb54438eb900f1889e0df63a64bf7e59d2c67fc3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TSysInspectionController.java
@@ -155,6 +155,9 @@
    @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)){
@@ -276,6 +279,8 @@
//                templateParam,
//                "病历-样例-temp",
//                "E:\\WXWork\\1688857451467088\\Cache\\File\\2026-01\\");
        sysInspection.setDetectionPdf(url);
        sysInspectionService.updateById(sysInspection);
        return R.ok(url);
    }
@@ -284,6 +289,9 @@
    @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)){
@@ -353,6 +361,8 @@
//                templateParam,
//                "处方单-"+sysInspection.getNickName(),
//                "E:\\WXWork\\1688857451467088\\Cache\\File\\2026-01\\");
        sysInspection.setPrescriptionPdf(url);
        sysInspectionService.updateById(sysInspection);
        return R.ok(url);
    }