|
@@ -6771,7 +6771,7 @@
|
|
|
d.NAME
|
|
|
</select>
|
|
|
|
|
|
- <!-- 不合格数病历号(内页)-->
|
|
|
+ <!-- 不合格/合格数病历号(内页)-->
|
|
|
<select id="badLevelPage" resultType="com.diagbot.dto.QcResultShortDTO">
|
|
|
SELECT t.*
|
|
|
FROM
|
|
@@ -6858,8 +6858,15 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = e.behospital_code
|
|
|
AND a.qc_type_id != 0
|
|
|
- AND e.`level`='不合格'
|
|
|
- AND e.cases_id= 243
|
|
|
+ AND e.cases_id = 243
|
|
|
+ <if test="qcResultPageVO.titleName != null ">
|
|
|
+ <if test="qcResultPageVO.titleName == '不合格数'">
|
|
|
+ AND e.`level`='不合格'
|
|
|
+ </if>
|
|
|
+ <if test="qcResultPageVO.titleName == '合格数'">
|
|
|
+ AND e.`level`='合格'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="qcResultPageVO.isPlacefile != null and qcResultPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultPageVO.isPlacefile}
|
|
|
</if>
|
|
@@ -7141,7 +7148,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <!-- 病案首页不合格数病历详情页导出-->
|
|
|
+ <!-- 病案首页不合格/合格数病历详情页导出-->
|
|
|
<select id="badLevelPagePageExport" resultMap="ExportExcelMap">
|
|
|
SELECT
|
|
|
f1.behDeptId,
|
|
@@ -7270,7 +7277,14 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND a.qc_type_id != 0
|
|
|
- AND c.`level`='不合格'
|
|
|
+ <if test="qcResultShortPageVO.titleName != null ">
|
|
|
+ <if test="qcResultShortPageVO.titleName == '不合格数'">
|
|
|
+ AND c.`level`='不合格'
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.titleName == '合格数'">
|
|
|
+ AND c.`level`='合格'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
</if>
|
|
@@ -7474,7 +7488,14 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.cases_id
|
|
|
- AND c.`level`='不合格'
|
|
|
+ <if test="qcResultShortPageVO.titleName != null ">
|
|
|
+ <if test="qcResultShortPageVO.titleName == '不合格数'">
|
|
|
+ AND c.`level`='不合格'
|
|
|
+ </if>
|
|
|
+ <if test="qcResultShortPageVO.titleName == '合格数'">
|
|
|
+ AND c.`level`='合格'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
AND a.qc_type_id != 0
|
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|