|
@@ -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
|