|
@@ -212,9 +212,13 @@
|
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
|
AND mbi.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
|
</if>
|
|
|
- <if test="department != null and department != ''">
|
|
|
- AND mbi.beh_dept_name like CONCAT('%',#{department},'%')
|
|
|
+ <if test="departments !=null and departments.size() !=0">
|
|
|
+ and mbi.beh_dept_id in
|
|
|
+ <foreach collection="departments" item="item" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
+
|
|
|
<if test="sDay != null">
|
|
|
<![CDATA[ AND mhp.behospital_day_num >= #{sDay}]]>
|
|
|
</if>
|