|
@@ -15543,9 +15543,9 @@
|
|
|
</select>
|
|
|
|
|
|
<!-- 质控核查质控评分页-科室(内页)-->
|
|
|
- <select id="qcCheckMRPageByDept" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
+ <select id="qcCheckMRPageByDept" resultType="com.diagbot.dto.QcResultShortDeptDTO">
|
|
|
SELECT
|
|
|
- t.*
|
|
|
+ t.*,t3.name as medoupName
|
|
|
FROM
|
|
|
(
|
|
|
SELECT DISTINCT
|
|
@@ -15638,6 +15638,9 @@
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.wardName != null and qcResultShortPageVO.wardName != ''">
|
|
|
+ and a.ward_name = #{qcResultShortPageVO.wardName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -15700,12 +15703,19 @@
|
|
|
LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
|
|
|
AND t1.behospital_code = t2.behospital_code
|
|
|
AND t2.is_deleted = 'N'
|
|
|
- ) t
|
|
|
+ ) t LEFT JOIN bas_doctor_info t2 ON t.doctorId = t2.doctor_id
|
|
|
+ AND t.hospitalId = t2.hospital_id
|
|
|
+ AND t2.is_deleted = 'N'
|
|
|
+ LEFT JOIN sys_medoup t3 ON t2.group_id = t3.`code`
|
|
|
+ AND t3.is_deleted = 'N'
|
|
|
WHERE
|
|
|
1 = 1
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.medoupName != null and qcResultShortPageVO.medoupName != ''">
|
|
|
+ AND t3.name = #{qcResultShortPageVO.medoupName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.mrStatus != null">
|
|
|
AND t.mrStatus = #{qcResultShortPageVO.mrStatus}
|
|
|
</if>
|
|
@@ -17269,6 +17279,8 @@
|
|
|
<if test="qcResultShortPageVO.radioCheck !=null and qcResultShortPageVO.radioCheck == 1">
|
|
|
f1.msg,
|
|
|
f1.caseName,
|
|
|
+ f1.medoupName,
|
|
|
+ f1.wardName,
|
|
|
</if>
|
|
|
f1.checkStatus,
|
|
|
f1.mrStatus,
|
|
@@ -17292,13 +17304,15 @@
|
|
|
</if>
|
|
|
t.behDeptId,
|
|
|
t.behDeptName,
|
|
|
+ t.wardName,
|
|
|
t.hospitalId,
|
|
|
t.checkStatus,
|
|
|
t.mrStatus,
|
|
|
t.chName,
|
|
|
t.mrName,
|
|
|
t.chTime,
|
|
|
- t.mrTime
|
|
|
+ t.mrTime,
|
|
|
+ t3.name as medoupName
|
|
|
FROM
|
|
|
(
|
|
|
SELECT DISTINCT
|
|
@@ -17413,6 +17427,9 @@
|
|
|
<if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
|
|
|
AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.wardName != null and qcResultShortPageVO.wardName != ''">
|
|
|
+ and a.ward_name = #{qcResultShortPageVO.wardName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
|
|
|
AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
|
|
|
</if>
|
|
@@ -17463,8 +17480,16 @@
|
|
|
AND t.behospitalCode = qd.behospital_code
|
|
|
LEFT JOIN qc_cases qc ON qc.is_deleted = 'N'
|
|
|
AND qd.cases_id = qc.id
|
|
|
+ LEFT JOIN bas_doctor_info t2 ON t.doctorId = t2.doctor_id
|
|
|
+ AND t.hospitalId = t2.hospital_id
|
|
|
+ AND t2.is_deleted = 'N'
|
|
|
+ LEFT JOIN sys_medoup t3 ON t2.group_id = t3.`code`
|
|
|
+ AND t3.is_deleted = 'N'
|
|
|
</if>
|
|
|
where 1=1
|
|
|
+ <if test="qcResultShortPageVO.medoupName != null and qcResultShortPageVO.medoupName != ''">
|
|
|
+ AND t3.name = #{qcResultShortPageVO.medoupName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
|
</if>
|
|
@@ -17586,6 +17611,9 @@
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.wardName != null and qcResultShortPageVO.wardName != ''">
|
|
|
+ and a.ward_name = #{qcResultShortPageVO.wardName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -17647,7 +17675,15 @@
|
|
|
LEFT JOIN med_qcresult_info qi ON qi.is_deleted = 'N'
|
|
|
AND t.hospitalId = qi.hospital_id
|
|
|
AND t.behospitalCode = qi.behospital_code
|
|
|
+ LEFT JOIN bas_doctor_info t2 ON t.doctorId = t2.doctor_id
|
|
|
+ AND t.hospitalId = t2.hospital_id
|
|
|
+ AND t2.is_deleted = 'N'
|
|
|
+ LEFT JOIN sys_medoup t3 ON t2.group_id = t3.`code`
|
|
|
+ AND t3.is_deleted = 'N'
|
|
|
where 1=1
|
|
|
+ <if test="qcResultShortPageVO.medoupName != null and qcResultShortPageVO.medoupName != ''">
|
|
|
+ AND t3.name = #{qcResultShortPageVO.medoupName}
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
|
</if>
|