Jelajahi Sumber

1、关键条目缺陷占比

zhaops 5 tahun lalu
induk
melakukan
1b2c197e88
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -2833,9 +2833,12 @@
         </if>
         <if test="qcResultShortPageVO.casesEntryId != null and( qcResultShortPageVO.casesEntryId==2594  or qcResultShortPageVO.casesEntryId==2973 or qcResultShortPageVO.casesEntryId==2166)">
             , med_home_page t2
+            , med_home_operation_info t3
             WHERE t1.hospital_id = t2.hospital_id
             AND t1.behospital_code = t2.behospital_code
+            AND t2.home_page_id = t3.home_page_id
             AND t2.is_deleted = 'N'
+            AND t3.is_deleted = 'N'
         </if>
     </select>
 
@@ -3058,7 +3061,8 @@
         CONCAT( ROUND( IFNULL( crisisNum / crisisMRNum, 0 ) * 100, 2 ), '%' ) AS crisisPercentStr,
         2495 AS stageSummaryEntryId,
         '无阶段小结' AS stageSummaryEntryName,
-        stageSummaryMRNum stageSummaryNum,
+        stageSummaryMRNum,
+        stageSummaryNum,
         ROUND( IFNULL( stageSummaryNum / stageSummaryMRNum, 0 ), 4 ) AS stageSummaryPercent,
         CONCAT( ROUND( IFNULL( stageSummaryNum / stageSummaryMRNum, 0 ) * 100, 2 ), '%' ) AS stageSummaryPercentStr
         FROM