|
@@ -40,6 +40,12 @@
|
|
|
on a.behospital_code = c.behospital_code and c.is_deleted = 'N'
|
|
|
) t
|
|
|
where t.is_deleted = 'N'
|
|
|
+ <if test="behDeptName != null and behDeptName != ''">
|
|
|
+ and t.beh_dept_name like CONCAT('%',#{behDeptName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ and t.doctor_name like CONCAT('%',#{doctorName},'%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
and t.name like CONCAT('%',#{name},'%')
|
|
|
</if>
|