|
@@ -5544,9 +5544,7 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -9609,9 +9607,7 @@
|
|
|
AND a.beh_dept_id = #{qcResultShortPageVO.deptId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -9901,9 +9897,7 @@
|
|
|
AND d.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -11287,9 +11281,7 @@
|
|
|
AND a.NAME LIKE CONCAT( '%', #{patName}, '%' )
|
|
|
</if>
|
|
|
<if test="doctorId != null and doctorId != ''">
|
|
|
- AND (a.doctor_id = #{doctorId}
|
|
|
- OR a.beh_doctor_id = #{doctorId}
|
|
|
- OR a.director_doctor_id = #{doctorId})
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
</if>
|
|
|
)be
|
|
|
left join med_check_info mci
|
|
@@ -11355,9 +11347,7 @@
|
|
|
OR a.director_doctor_name LIKE CONCAT( '%', #{doctorName}, '%'))
|
|
|
</if>
|
|
|
<if test="doctorId != null and doctorId != ''">
|
|
|
- AND (a.doctor_id = #{doctorId}
|
|
|
- OR a.beh_doctor_id = #{doctorId}
|
|
|
- OR a.director_doctor_id = #{doctorId})
|
|
|
+ AND a.doctor_id = #{doctorId}
|
|
|
</if>
|
|
|
<if test="deptClass != null and deptClass != ''">
|
|
|
and a.beh_dept_id = #{deptClass}
|
|
@@ -12763,9 +12753,7 @@
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
@@ -12991,9 +12979,7 @@
|
|
|
AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorId != null and qcResultShortPageVO.doctorId != ''">
|
|
|
- AND (a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.beh_doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
- OR a.director_doctor_id = #{qcResultShortPageVO.doctorId})
|
|
|
+ AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|