|
@@ -30,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -64,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -106,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -150,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -187,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -222,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -259,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND d.user_id = #{userId}
|
|
|
</if>
|
|
@@ -318,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND g.user_id = #{userId}
|
|
|
</if>
|
|
@@ -366,7 +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
|
|
|
+ <![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND e.user_id = #{userId}
|
|
|
</if>
|