|
@@ -5578,9 +5578,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.isReject != null">
|
|
|
AND c.is_reject = #{qcResultShortPageVO.isReject}
|
|
@@ -7500,9 +7498,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) b
|
|
|
LEFT JOIN med_qcresult_info c ON c.is_deleted = 'N'
|
|
@@ -9154,9 +9150,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) b
|
|
|
LEFT JOIN med_qcresult_info c ON c.is_deleted = 'N'
|
|
@@ -9408,9 +9402,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) b
|
|
|
LEFT JOIN med_qcresult_info c ON c.is_deleted = 'N'
|
|
@@ -9672,9 +9664,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND b.`level` = #{qcResultShortPageVO.level}
|
|
@@ -9975,9 +9965,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.isReject != null">
|
|
|
AND c.is_reject = #{qcResultShortPageVO.isReject}
|
|
@@ -11336,9 +11324,7 @@
|
|
|
AND a.doctor_id = #{doctorId}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{doctorName}
|
|
|
</if>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -11438,9 +11424,7 @@
|
|
|
and a.beh_dept_name = #{deptName}
|
|
|
</if>
|
|
|
<if test="doctorName != null and doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{doctorName}
|
|
|
</if>
|
|
|
<if test="doctorId != null and doctorId != ''">
|
|
|
AND a.doctor_id = #{doctorId}
|
|
@@ -12136,9 +12120,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
AND d.id = #{qcResultShortPageVO.casesEntryId}
|
|
@@ -12870,9 +12852,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
)be
|
|
|
left join med_check_info mci
|
|
@@ -13107,9 +13087,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
AND d.id = #{qcResultShortPageVO.casesEntryId}
|
|
@@ -13831,9 +13809,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
@@ -14068,9 +14044,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
AND d.id = #{qcResultShortPageVO.casesEntryId}
|
|
@@ -15272,6 +15246,9 @@
|
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
AND m1.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
+ AND m1.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile == 0">
|
|
|
<if test="qcResultShortPageVO.startDate != null ">
|
|
|
<![CDATA[ AND m1.behospital_date >= #{qcResultShortPageVO.startDate}]]>
|
|
@@ -15366,9 +15343,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.improveType != null and qcResultShortPageVO.improveType == 2">
|
|
|
<![CDATA[AND ( e.`level` = '不合格' AND d.`level` = '合格' AND d.score_res < 20 )]]>
|
|
@@ -15754,9 +15729,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) be
|
|
|
LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
|
|
@@ -16516,6 +16489,9 @@
|
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
AND m1.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
+ AND m1.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile == 0">
|
|
|
<if test="qcResultShortPageVO.startDate != null ">
|
|
|
<![CDATA[ AND m1.behospital_date >= #{qcResultShortPageVO.startDate}]]>
|
|
@@ -16610,9 +16586,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.improveType != null and qcResultShortPageVO.improveType == 2">
|
|
|
<![CDATA[AND ( e.`level` = '不合格' AND d.`level` = '合格' AND d.score_res < 20 )]]>
|
|
@@ -16798,6 +16772,9 @@
|
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
AND m1.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
+ AND m1.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile == 0">
|
|
|
<if test="qcResultShortPageVO.startDate != null ">
|
|
|
<![CDATA[ AND m1.behospital_date >= #{qcResultShortPageVO.startDate}]]>
|
|
@@ -16892,9 +16869,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.improveType != null and qcResultShortPageVO.improveType == 2">
|
|
|
<![CDATA[AND ( e.`level` = '不合格' AND d.`level` = '合格' AND d.score_res < 20 )]]>
|
|
@@ -17562,9 +17537,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) be
|
|
|
LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
|
|
@@ -17769,9 +17742,7 @@
|
|
|
AND a.doctor_id = #{qcResultShortPageVO.doctorId}
|
|
|
</if>
|
|
|
<if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
|
|
|
- AND (a.doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
- OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
+ AND a.doctor_name = #{qcResultShortPageVO.doctorName}
|
|
|
</if>
|
|
|
) be
|
|
|
LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
|