|
@@ -394,12 +394,16 @@
|
|
|
count(*) AS mrNum
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- med_qcresult_info c
|
|
|
+ med_qcresult_info c,
|
|
|
+ med_qcresult_detail d
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
AND c.is_deleted = 'N'
|
|
|
+ AND d.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
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
@@ -783,15 +787,20 @@
|
|
|
count(*) AS mrNum
|
|
|
FROM
|
|
|
med_behospital_info a,
|
|
|
- med_qcresult_info c
|
|
|
+ med_qcresult_info c,
|
|
|
+ med_qcresult_detail d
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
AND c.is_deleted = 'N'
|
|
|
+ AND d.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
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and a.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
+ AND d.is_reject = 1
|
|
|
AND a.qc_type_id != 0
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|