|
@@ -6798,61 +6798,60 @@
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
AND e.`level`='不合格'
|
|
AND e.`level`='不合格'
|
|
- <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
- and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
|
|
+ <if test="qcResultPageVO.isPlacefile != null and qcResultPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
|
|
- AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
|
|
|
+ <if test="qcResultPageVO.hospitalId != null and qcResultPageVO.hospitalId != ''">
|
|
|
|
+ AND a.hospital_id = #{qcResultPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile == 0">
|
|
|
|
- <if test="qcResultShortPageVO.startDate != null ">
|
|
|
|
- <![CDATA[ AND a.behospital_date >= #{qcResultShortPageVO.startDate}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.isPlacefile != null and qcResultPageVO.isPlacefile == 0">
|
|
|
|
+ <if test="qcResultPageVO.startDate != null ">
|
|
|
|
+ <![CDATA[ AND a.behospital_date >= #{qcResultPageVO.startDate}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.endDate != null ">
|
|
|
|
- <![CDATA[ AND a.behospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.endDate != null ">
|
|
|
|
+ <![CDATA[ AND a.behospital_date <= #{qcResultPageVO.endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile == 1">
|
|
|
|
- <if test="qcResultShortPageVO.startDate != null ">
|
|
|
|
- <![CDATA[ AND a.leave_hospital_date >= #{qcResultShortPageVO.startDate}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.isPlacefile != null and qcResultPageVO.isPlacefile == 1">
|
|
|
|
+ <if test="qcResultPageVO.startDate != null ">
|
|
|
|
+ <![CDATA[ AND a.leave_hospital_date >= #{qcResultPageVO.startDate}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.endDate != null">
|
|
|
|
- <![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.endDate != null">
|
|
|
|
+ <![CDATA[ AND a.leave_hospital_date <= #{qcResultPageVO.endDate}]]>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.behDeptName != null and qcResultShortPageVO.behDeptName != ''">
|
|
|
|
- AND a.beh_dept_name = #{qcResultShortPageVO.behDeptName}
|
|
|
|
|
|
+ <if test="qcResultPageVO.behDeptName != null and qcResultPageVO.behDeptName != ''">
|
|
|
|
+ AND a.beh_dept_name = #{qcResultPageVO.behDeptName}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
|
|
|
|
- AND b.`level` = #{qcResultShortPageVO.level}
|
|
|
|
|
|
+ <if test="qcResultPageVO.level != null and qcResultPageVO.level != ''">
|
|
|
|
+ <if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
|
+ AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
|
- AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
|
- AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
|
|
|
+ <if test="qcResultPageVO.patName != null and qcResultPageVO.patName != ''">
|
|
|
|
+ AND a.NAME LIKE CONCAT( '%', #{qcResultPageVO.patName}, '%' )
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.casesEntryName != null and qcResultShortPageVO.casesEntryName != ''">
|
|
|
|
- AND d.NAME = #{qcResultShortPageVO.casesEntryName}
|
|
|
|
|
|
+ <if test="qcResultPageVO.casesEntryName != null and qcResultPageVO.casesEntryName != ''">
|
|
|
|
+ AND d.NAME = #{qcResultPageVO.casesEntryName}
|
|
</if>
|
|
</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}, '%' )
|
|
|
|
- OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultShortPageVO.doctorId}, '%' ))
|
|
|
|
|
|
+ <if test="qcResultPageVO.doctorId != null and qcResultPageVO.doctorId != ''">
|
|
|
|
+ AND (a.doctor_id LIKE CONCAT( '%', #{qcResultPageVO.doctorId}, '%' )
|
|
|
|
+ OR a.beh_doctor_id LIKE CONCAT( '%', #{qcResultPageVO.doctorId}, '%' )
|
|
|
|
+ OR a.director_doctor_id LIKE CONCAT( '%', #{qcResultPageVO.doctorId}, '%' ))
|
|
</if>
|
|
</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}, '%' ))
|
|
|
|
|
|
+ <if test="qcResultPageVO.doctorName != null and qcResultPageVO.doctorName != ''">
|
|
|
|
+ AND (a.doctor_name LIKE CONCAT( '%', #{qcResultPageVO.doctorName}, '%' )
|
|
|
|
+ OR a.beh_doctor_name LIKE CONCAT( '%', #{qcResultPageVO.doctorName}, '%' )
|
|
|
|
+ OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultPageVO.doctorName}, '%' ))
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.casesEntryId != null ">
|
|
|
|
- AND d.id = #{qcResultShortPageVO.casesEntryId}
|
|
|
|
|
|
+ <if test="qcResultPageVO.casesEntryId != null ">
|
|
|
|
+ AND d.id = #{qcResultPageVO.casesEntryId}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.isReject != null">
|
|
|
|
- AND c.is_reject = #{qcResultShortPageVO.isReject}
|
|
|
|
|
|
+ <if test="qcResultPageVO.isReject != null">
|
|
|
|
+ AND c.is_reject = #{qcResultPageVO.isReject}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.ruleType != null">
|
|
|
|
- AND d.rule_type = #{qcResultShortPageVO.ruleType}
|
|
|
|
|
|
+ <if test="qcResultPageVO.ruleType != null">
|
|
|
|
+ AND d.rule_type = #{qcResultPageVO.ruleType}
|
|
</if>
|
|
</if>
|
|
)be
|
|
)be
|
|
left join med_check_info mci
|
|
left join med_check_info mci
|
|
@@ -6871,29 +6870,29 @@
|
|
AND t2.is_deleted = 'N'
|
|
AND t2.is_deleted = 'N'
|
|
) t
|
|
) t
|
|
where 1=1
|
|
where 1=1
|
|
- <if test="qcResultShortPageVO.checkStatus != null">
|
|
|
|
- AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
|
|
|
|
|
|
+ <if test="qcResultPageVO.checkStatus != null">
|
|
|
|
+ AND t.checkStatus = #{qcResultPageVO.checkStatus}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.mrStatus != null">
|
|
|
|
- AND t.mrStatus = #{qcResultShortPageVO.mrStatus}
|
|
|
|
|
|
+ <if test="qcResultPageVO.mrStatus != null">
|
|
|
|
+ AND t.mrStatus = #{qcResultPageVO.mrStatus}
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.chName != null and qcResultShortPageVO.chName!=''">
|
|
|
|
- AND t.chName like concat('%', #{qcResultShortPageVO.chName}, '%')
|
|
|
|
|
|
+ <if test="qcResultPageVO.chName != null and qcResultPageVO.chName!=''">
|
|
|
|
+ AND t.chName like concat('%', #{qcResultPageVO.chName}, '%')
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.mrName != null and qcResultShortPageVO.mrName!=''">
|
|
|
|
- AND t.mrName like concat('%', #{qcResultShortPageVO.mrName}, '%')
|
|
|
|
|
|
+ <if test="qcResultPageVO.mrName != null and qcResultPageVO.mrName!=''">
|
|
|
|
+ AND t.mrName like concat('%', #{qcResultPageVO.mrName}, '%')
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.chTimeStart != null ">
|
|
|
|
- <![CDATA[ AND t.chTime >= #{qcResultShortPageVO.chTimeStart}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.chTimeStart != null ">
|
|
|
|
+ <![CDATA[ AND t.chTime >= #{qcResultPageVO.chTimeStart}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.chTimeEnd != null ">
|
|
|
|
- <![CDATA[ AND t.chTime <= #{qcResultShortPageVO.chTimeEnd}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.chTimeEnd != null ">
|
|
|
|
+ <![CDATA[ AND t.chTime <= #{qcResultPageVO.chTimeEnd}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.mrTimeStart != null ">
|
|
|
|
- <![CDATA[ AND t.mrTime >= #{qcResultShortPageVO.mrTimeStart}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.mrTimeStart != null ">
|
|
|
|
+ <![CDATA[ AND t.mrTime >= #{qcResultPageVO.mrTimeStart}]]>
|
|
</if>
|
|
</if>
|
|
- <if test="qcResultShortPageVO.mrTimeEnd != null ">
|
|
|
|
- <![CDATA[ AND t.mrTime <= #{qcResultShortPageVO.mrTimeEnd}]]>
|
|
|
|
|
|
+ <if test="qcResultPageVO.mrTimeEnd != null ">
|
|
|
|
+ <![CDATA[ AND t.mrTime <= #{qcResultPageVO.mrTimeEnd}]]>
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<!-- 未整改病历质控评分页(内页)-->
|
|
<!-- 未整改病历质控评分页(内页)-->
|