瀏覽代碼

质控核查统计病历核查数量统计内页逻辑调整

chengyao 3 年之前
父節點
當前提交
62e22328ec
共有 1 個文件被更改,包括 3 次插入13 次删除
  1. 3 13
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 3 - 13
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -15351,22 +15351,16 @@
         CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
         t1.file_code AS fileCode,
         t1.checkStatus,
-        t1.mrStatus,
         t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.chTime
         FROM
         (
         SELECT
         be.*,
         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
+        mci.gmt_create AS chTime
         FROM
         (
         SELECT DISTINCT
@@ -15452,13 +15446,9 @@
         </if>
         ) be
         LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
-        AND mci.check_type = 0
+        AND mci.check_type in(0,2)
         AND be.hospital_id = mci.hospital_id
         AND be.behospital_code = mci.behospital_code
-        LEFT JOIN med_check_info hm_mci ON hm_mci.is_deleted = 'N'
-        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