|
@@ -532,7 +532,12 @@
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_home_page b,
|
|
|
- med_qcresult_info c,
|
|
|
+ <if test="filterPageVO.casesId != null and filterPageVO.casesId ==243">
|
|
|
+ med_qcresult_cases c,
|
|
|
+ </if>
|
|
|
+ <if test="filterPageVO.casesId == null or filterPageVO.casesId ==0">
|
|
|
+ med_qcresult_info c,
|
|
|
+ </if>
|
|
|
med_qcresult_detail d,
|
|
|
qc_cases_entry e
|
|
|
WHERE
|
|
@@ -547,10 +552,13 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
+ <if test="filterPageVO.casesId != null and filterPageVO.casesId ==243">
|
|
|
+ AND c.cases_id = d.cases_id
|
|
|
+ </if>
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
- <if test="filterPageVO.casesId != null and filterPageVO.casesId != ''">
|
|
|
+ <if test="filterPageVO.casesId != null and filterPageVO.casesId != 0">
|
|
|
AND d.cases_id = #{filterPageVO.casesId}
|
|
|
</if>
|
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
@@ -574,7 +582,12 @@
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_home_page b,
|
|
|
- med_qcresult_info c,
|
|
|
+ <if test="filterPageVO.casesId != null and filterPageVO.casesId ==243">
|
|
|
+ med_qcresult_cases c,
|
|
|
+ </if>
|
|
|
+ <if test="filterPageVO.casesId == null or filterPageVO.casesId ==0">
|
|
|
+ med_qcresult_info c,
|
|
|
+ </if>
|
|
|
med_qcresult_detail d,
|
|
|
qc_cases_entry e
|
|
|
WHERE
|
|
@@ -589,6 +602,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
+ <if test="filterPageVO.casesId != null and filterPageVO.casesId ==243">
|
|
|
+ AND c.cases_id = d.cases_id
|
|
|
+ </if>
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
@@ -874,7 +890,12 @@
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_home_page b,
|
|
|
- med_qcresult_info c,
|
|
|
+ <if test="filterPageByDeptVO.casesId != null and filterPageByDeptVO.casesId ==243">
|
|
|
+ med_qcresult_cases c,
|
|
|
+ </if>
|
|
|
+ <if test="filterPageByDeptVO.casesId == null or filterPageByDeptVO.casesId ==0">
|
|
|
+ med_qcresult_info c,
|
|
|
+ </if>
|
|
|
med_qcresult_detail d,
|
|
|
qc_cases_entry e,
|
|
|
sys_user_dept f
|
|
@@ -892,6 +913,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
+ <if test="filterPageByDeptVO.casesId != null and filterPageByDeptVO.casesId ==243">
|
|
|
+ AND c.cases_id = d.cases_id
|
|
|
+ </if>
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
@@ -926,7 +950,12 @@
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
med_home_page b,
|
|
|
- med_qcresult_info c,
|
|
|
+ <if test="filterPageByDeptVO.casesId != null and filterPageByDeptVO.casesId ==243">
|
|
|
+ med_qcresult_cases c,
|
|
|
+ </if>
|
|
|
+ <if test="filterPageByDeptVO.casesId == null or filterPageByDeptVO.casesId ==0">
|
|
|
+ med_qcresult_info c,
|
|
|
+ </if>
|
|
|
med_qcresult_detail d,
|
|
|
qc_cases_entry e,
|
|
|
sys_user_dept f
|
|
@@ -944,6 +973,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
+ <if test="filterPageByDeptVO.casesId != null and filterPageByDeptVO.casesId ==243">
|
|
|
+ AND c.cases_id = d.cases_id
|
|
|
+ </if>
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
AND a.beh_dept_id = f.dept_id
|