|
@@ -7804,7 +7804,9 @@
|
|
|
<!-- 离院病人评分详情页-->
|
|
|
<select id="leaveHosMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
SELECT
|
|
|
- t.*
|
|
|
+ t.*,
|
|
|
+ t4.operation_doctor_id,
|
|
|
+ t4.operation_level
|
|
|
FROM
|
|
|
(SELECT DISTINCT
|
|
|
t1.hospital_id AS hospitalId,
|
|
@@ -8012,7 +8014,13 @@
|
|
|
AND t1.behospital_code = t2.behospital_code
|
|
|
</if>
|
|
|
)t
|
|
|
+ ,med_home_page t3
|
|
|
+ ,med_home_operation_info t4
|
|
|
where 1=1
|
|
|
+ AND t.hospitalId = t3.hospital_id
|
|
|
+ AND t.hospitalId = t4.hospital_id
|
|
|
+ AND t.behospitalCode = t3.behospital_code
|
|
|
+ AND t3.home_page_id = t4.home_page_id
|
|
|
<if test="qcResultShortPageVO.checkStatus != null">
|
|
|
and t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
|
</if>
|
|
@@ -8040,6 +8048,12 @@
|
|
|
<if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
AND t.`level` = #{qcResultShortPageVO.level}
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.operationDoctor != null and qcResultShortPageVO.operationDoctor != ''">
|
|
|
+ AND t4.`operationDoctor` = #{qcResultShortPageVO.operationDoctor}
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.operationLevel != null and qcResultShortPageVO.operationLevel != ''">
|
|
|
+ AND t4.`operationLevel` = #{qcResultShortPageVO.operationLevel}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 离院病人评分详情页-科室-->
|