|
@@ -19783,11 +19783,17 @@
|
|
|
<if test="behDeptName != null and behDeptName !=''">
|
|
|
AND m1.beh_dept_name=#{behDeptName}
|
|
|
</if>
|
|
|
- <if test="behospitalDate != null and behospitalDate !=''">
|
|
|
- <![CDATA[ AND m1.behospital_date >= #{behospitalDate}]]>
|
|
|
+ <if test="behospitalStartDate != null and behospitalStartDate !=''">
|
|
|
+ <![CDATA[ AND m1.behospital_date >= #{behospitalStartDate}]]>
|
|
|
</if>
|
|
|
- <if test="leaveHospitalDate != null and leaveHospitalDate !=''">
|
|
|
- <![CDATA[ AND m1.leave_hospital_date <= #{leaveHospitalDate}]]>
|
|
|
+ <if test="behospitalEndDate != null and behospitalEndDate !=''">
|
|
|
+ <![CDATA[ AND m1.behospital_date <= #{behospitalEndDate}]]>
|
|
|
+ </if>
|
|
|
+ <if test="leaveHospitalStartDate != null and leaveHospitalStartDate !=''">
|
|
|
+ <![CDATA[ AND m1.leave_hospital_date >= #{leaveHospitalStartDate}]]>
|
|
|
+ </if>
|
|
|
+ <if test="leaveHospitalEndDate != null and leaveHospitalEndDate !=''">
|
|
|
+ <![CDATA[ AND m1.leave_hospital_date <= #{leaveHospitalEndDate}]]>
|
|
|
</if>
|
|
|
AND m1.behospital_code = m2.behospital_code
|
|
|
</select>
|