|
@@ -3871,6 +3871,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -3944,6 +3953,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|
|
@@ -4033,6 +4051,15 @@
|
|
|
<if test="deptName!=null and deptName !=''">
|
|
|
AND a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
+ <if test="deptId!=null and deptId !=''">
|
|
|
+ AND a.beh_dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorId != null and doctorId != ''">
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
+ </if>
|
|
|
+ <if test="doctorName != null and doctorName != ''">
|
|
|
+ AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
|
|
|
+ </if>
|
|
|
<if test="name != null and name != ''">
|
|
|
AND a.doctor_name like CONCAT('%', #{name}, '%')
|
|
|
</if>
|