瀏覽代碼

离院人数质控评分详情

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

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

@@ -3871,9 +3871,6 @@
         LEFT JOIN med_qcresult_info c ON c.is_deleted = 'N'
         LEFT JOIN med_qcresult_info c ON c.is_deleted = 'N'
         AND b.hospital_id = c.hospital_id
         AND b.hospital_id = c.hospital_id
         AND b.behospital_code = c.behospital_code
         AND b.behospital_code = c.behospital_code
-        <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
-            AND c.`level` = #{qcResultShortPageVO.level}
-        </if>
         ) tt1
         ) tt1
         <if test="qcResultShortPageVO.leaveHosType != null and qcResultShortPageVO.leaveHosType ==3">
         <if test="qcResultShortPageVO.leaveHosType != null and qcResultShortPageVO.leaveHosType ==3">
             ,med_medical_record tt2,
             ,med_medical_record tt2,
@@ -3930,6 +3927,9 @@
         <if test="qcResultShortPageVO.checkStatus != null">
         <if test="qcResultShortPageVO.checkStatus != null">
             and t.checkStatus = #{qcResultShortPageVO.checkStatus}
             and t.checkStatus = #{qcResultShortPageVO.checkStatus}
         </if>
         </if>
+        <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
+            AND t.`level` = #{qcResultShortPageVO.level}
+        </if>
     </select>
     </select>
 
 
     <!-- 病案首页改善率统计(首页)-->
     <!-- 病案首页改善率统计(首页)-->