Bläddra i källkod

病案首页合格率内页调整

chengyao 4 år sedan
förälder
incheckning
5320e165df
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -3416,6 +3416,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,
@@ -3451,6 +3452,7 @@
         ifnull(mci.status,0) AS checkStatus,
         ifnull(hm_mci.status,0) AS mrStatus,
         mci.check_name as chName,
+        e.score_res as scoreBn,
         hm_mci.check_name as mrName,
         mci.gmt_create as chTime,
         hm_mci.gmt_create as mrTime
@@ -3583,6 +3585,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