|
@@ -6116,6 +6116,9 @@
|
|
|
AND t.behospitalCode = qd.behospital_code
|
|
|
LEFT JOIN qc_cases qc ON qc.is_deleted = 'N'
|
|
|
AND qd.cases_id = qc.id
|
|
|
+ LEFT JOIN qc_cases_entry qce ON qce.is_deleted = 'N'
|
|
|
+ AND qd.cases_id = qce.cases_id
|
|
|
+ AND qd.cases_entry_id = qce.id
|
|
|
where 1=1
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
@@ -6141,6 +6144,18 @@
|
|
|
<if test="qcResultShortPageVO.mrTimeEnd != null ">
|
|
|
<![CDATA[ AND t.mrTime <= #{qcResultShortPageVO.mrTimeEnd}]]>
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
+ AND qce.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
+ AND qce.id = #{qcResultShortPageVO.casesEntryId}
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.casesName != null and qcResultShortPageVO.casesName != ''">
|
|
|
+ AND qce.cases_name = #{qcResultShortPageVO.casesName}
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.casesId != null">
|
|
|
+ AND qce.cases_id = #{qcResultShortPageVO.casesId}
|
|
|
+ </if>
|
|
|
)f1,
|
|
|
(SELECT
|
|
|
ROUND( AVG( qi.score_res ), 2 ) AS avgScore,
|
|
@@ -6800,9 +6815,6 @@
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
|
- <if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
- AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
- </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}, '%' )
|
|
@@ -6813,6 +6825,9 @@
|
|
|
OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' )
|
|
|
OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
+ AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
AND d.id = #{qcResultShortPageVO.casesEntryId}
|
|
|
</if>
|
|
@@ -6846,6 +6861,9 @@
|
|
|
AND t.behospitalCode = qd.behospital_code
|
|
|
LEFT JOIN qc_cases qc ON qc.is_deleted = 'N'
|
|
|
AND qd.cases_id = qc.id
|
|
|
+ LEFT JOIN qc_cases_entry qce ON qce.is_deleted = 'N'
|
|
|
+ AND qd.cases_id = qce.cases_id
|
|
|
+ AND qd.cases_entry_id = qce.id
|
|
|
where 1=1
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
@@ -6871,6 +6889,12 @@
|
|
|
<if test="qcResultShortPageVO.mrTimeEnd != null ">
|
|
|
<![CDATA[ AND t.mrTime <= #{qcResultShortPageVO.mrTimeEnd}]]>
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
+ AND qce.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
+ AND qce.id = #{qcResultShortPageVO.casesEntryId}
|
|
|
+ </if>
|
|
|
)f1,
|
|
|
(SELECT
|
|
|
ROUND( AVG( qi.score_res ), 2 ) AS avgScore,
|