Переглянути джерело

病案首页合格率内页调整

chengyao 4 роки тому
батько
коміт
176517f10e
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 7 - 0
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -5940,6 +5940,7 @@
         t1.LEVEL AS LEVEL,
         t1.grade_type AS gradeType,
         t1.score_res AS scoreRes,
+        t1.scoreBn,
         t1.NAME AS NAME,
         t1.sex AS sex,
         t1.beh_dept_id AS behDeptId,
@@ -5977,6 +5978,7 @@
         mci.check_name as chName,
         hm_mci.check_name as mrName,
         mci.gmt_create as chTime,
+        e.score_res as scoreBn,
         hm_mci.gmt_create as mrTime
         FROM
         (
@@ -6107,6 +6109,11 @@
         and hm_mci.check_type = 1
         and be.hospital_id = hm_mci.hospital_id
         and be.behospital_code = hm_mci.behospital_code
+        LEFT JOIN med_qcresult_cases e
+        on  be.behospital_code = e.behospital_code
+        and be.hospital_id = e.hospital_id
+        AND e.is_deleted = 'N'
+        and e.cases_id = 243
         )tt1
         <if test="qcResultShortPageVO.casesEntryId != null and qcResultShortPageVO.casesEntryId==2511">
             ,med_medical_record tt2