Sfoglia il codice sorgente

离院人数质控评分详情

zhaops 4 anni fa
parent
commit
cd9934790b
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5 3
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -3794,7 +3794,7 @@
         t1.ward_name AS wardName,
         ifnull(t1.status,0) AS checkStatus,
         t2.age,
-        t2.file_code AS fileCode
+        t1.file_code AS fileCode
         FROM
         (
         SELECT be.*,mci.status
@@ -3831,7 +3831,8 @@
         a.director_doctor_name,
         a.diagnose,
         a.placefile_date,
-        a.ward_name
+        a.ward_name,
+        a.file_code
         FROM
         med_behospital_info a
         WHERE
@@ -4157,7 +4158,6 @@
         AND a.behospital_code = c.behospital_code
         AND a.qc_type_id != 0
         AND a.is_placefile = '1'
-        AND c.have_home_page = '1'
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
         </if>
@@ -4208,6 +4208,8 @@
         AND m1.behospital_code = m4.behospital_code
         AND m3.have_home_page = 1
         AND m4.cases_id = 243
+        AND m1.is_placefile = '1'
+        AND m1.qc_type_id != 0
         <if test="hospitalId != null and hospitalId != ''">
             AND m1.hospital_id = #{hospitalId}
         </if>