|
@@ -1112,27 +1112,15 @@
|
|
|
d.is_reject as isReject
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- <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
|
|
|
a.is_deleted = 'N'
|
|
|
- AND c.is_deleted = 'N'
|
|
|
AND d.is_deleted = 'N'
|
|
|
and e.is_deleted='N'
|
|
|
- AND a.hospital_id = c.hospital_id
|
|
|
and a.hospital_id = d.hospital_id
|
|
|
- AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
AND a.is_placefile = '1'
|
|
|
- <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 ]]>
|
|
@@ -1168,27 +1156,15 @@
|
|
|
count(*) AS totleNum
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- <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
|
|
|
a.is_deleted = 'N'
|
|
|
- AND c.is_deleted = 'N'
|
|
|
AND d.is_deleted = 'N'
|
|
|
and e.is_deleted='N'
|
|
|
- AND a.hospital_id = c.hospital_id
|
|
|
and a.hospital_id = d.hospital_id
|
|
|
- AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
AND a.is_placefile = '1'
|
|
|
- <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 ]]>
|
|
@@ -1486,30 +1462,18 @@
|
|
|
a.beh_dept_name AS deptName
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- <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
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
- AND c.is_deleted = 'N'
|
|
|
AND d.is_deleted = 'N'
|
|
|
AND e.is_deleted = 'N'
|
|
|
AND f.is_deleted = 'N'
|
|
|
- AND a.hospital_id = c.hospital_id
|
|
|
AND a.hospital_id = d.hospital_id
|
|
|
AND a.hospital_id = f.hospital_id
|
|
|
- AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
AND a.is_placefile = '1'
|
|
|
- <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
|
|
@@ -1557,30 +1521,18 @@
|
|
|
count(*) AS totleNum
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- <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
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
- AND c.is_deleted = 'N'
|
|
|
AND d.is_deleted = 'N'
|
|
|
AND e.is_deleted = 'N'
|
|
|
AND f.is_deleted = 'N'
|
|
|
- AND a.hospital_id = c.hospital_id
|
|
|
AND a.hospital_id = d.hospital_id
|
|
|
AND a.hospital_id = f.hospital_id
|
|
|
- AND a.behospital_code = c.behospital_code
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
AND a.is_placefile = '1'
|
|
|
- <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
|