|
@@ -5492,6 +5492,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
|
</if>
|
|
@@ -5514,9 +5517,9 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -9575,13 +9578,13 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -9846,6 +9849,9 @@
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.deptId != null and qcResultShortPageVO.deptId != ''">
|
|
|
+ AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
|
</if>
|
|
@@ -9868,9 +9874,9 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' )
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
+ AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
+ OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|