Pārlūkot izejas kodu

病案首页改善率统计

zhaops 4 gadi atpakaļ
vecāks
revīzija
f7f9ab262d
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 5 5
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -4960,20 +4960,20 @@
             AND m1.hospital_id = #{hospitalId}
         </if>
         <if test="isPlacefile != null and isPlacefile == 0">
-            AND ifnull(a.leave_hospital_date ,'') = ''
+            AND ifnull(m1.leave_hospital_date ,'') = ''
             <if test="startDate != null and startDate != ''">
-                <![CDATA[ AND a.behospital_date >= #{startDate}]]>
+                <![CDATA[ AND m1.behospital_date >= #{startDate}]]>
             </if>
             <if test="endDate != null and endDate != ''">
-                <![CDATA[ AND a.behospital_date <= #{endDate}]]>
+                <![CDATA[ AND m1.behospital_date <= #{endDate}]]>
             </if>
         </if>
         <if test="isPlacefile != null and isPlacefile == 1">
             <if test="startDate != null and startDate != ''">
-                <![CDATA[ AND a.leave_hospital_date >= #{startDate}]]>
+                <![CDATA[ AND m1.leave_hospital_date >= #{startDate}]]>
             </if>
             <if test="endDate != null and endDate != ''">
-                <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
+                <![CDATA[ AND m1.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
         GROUP BY