| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | @TableField("remarks") |
| | | private String remarks; |
| | | |
| | | @ApiModelProperty(value = "诊所添加病例信息pdf地址") |
| | | @TableField("detection_pdf") |
| | | private String detectionPdf; |
| | | |
| | | @ApiModelProperty(value = "诊所添加处方信息pdf地址") |
| | | @TableField("prescription_pdf") |
| | | private String prescriptionPdf; |
| | | |
| | | } |
| | |
| | | <result column="prescription_content" property="prescriptionContent" /> |
| | | <result column="remarks" property="remarks" /> |
| | | <result column="personal_history" property="personalHistory" /> |
| | | <result column="detection_pdf" property="detectionPdf" /> |
| | | <result column="prescription_pdf" property="prescriptionPdf" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | |
| | | id, app_user_id,clinic_id, nick_name, sex, age, administrative_office, check_time, |
| | | inspection_info,inspection_type, is_pay, create_time, update_time, |
| | | create_by, update_by, disabled, create_id,report_print_url, present_history, |
| | | tcm_syndrome, disease_history_memo, |
| | | tcm_syndrome, disease_history_memo,detection_pdf,prescription_pdf, |
| | | western_medicine_diagnosis, three_user_id, phone, device_account_id, |
| | | face_result_id, tongue_result_id,personal_history |
| | | </sql> |
| | |
| | | tsi.pulse, tsi.breathe,tsi.blood_pressure, tsi.general_situation, tsi.fee_category, |
| | | tsi.prescription_number, tsi.department_name, tsi.prescription_time, tsi.home_address, |
| | | tsi.clinical_diagnosis,tsi.prescription_content, tsi.remarks,tsi.personal_history, |
| | | tsi.detection_pdf,tsi.prescription_pdf |
| | | tau.nick_name as nickName |
| | | FROM t_sys_inspection tsi |
| | | left join t_sys_app_user tau on tsi.app_user_id = tau.id |