|
@@ -30,6 +30,7 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.is_deleted = 'N'
|
|
|
AND b.is_deleted = 'N'
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -63,6 +64,7 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -104,6 +106,7 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -147,6 +150,7 @@
|
|
|
AND d.cases_id = e.id
|
|
|
AND d.cases_entry_id = f.id
|
|
|
AND e.id = f.cases_id
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -183,6 +187,7 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -217,6 +222,7 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -253,6 +259,7 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = d.dept_id
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="userId!=null">
|
|
|
AND d.user_id = #{userId}
|
|
|
</if>
|
|
@@ -311,6 +318,7 @@
|
|
|
AND d.cases_entry_id = f.id
|
|
|
AND e.id = f.cases_id
|
|
|
AND a.beh_dept_id = g.dept_id
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="userId!=null">
|
|
|
AND g.user_id = #{userId}
|
|
|
</if>
|
|
@@ -358,6 +366,7 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
AND a.beh_dept_id = e.dept_id
|
|
|
+ AND a.qc_type_id IS NOT NULL
|
|
|
<if test="userId!=null">
|
|
|
AND e.user_id = #{userId}
|
|
|
</if>
|