|
@@ -160,7 +160,9 @@
|
|
AND a.is_deleted = 'N'
|
|
AND a.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -194,7 +196,9 @@
|
|
AND a.is_deleted = 'N'
|
|
AND a.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -212,7 +216,9 @@
|
|
select * from med_behospital_info a
|
|
select * from med_behospital_info a
|
|
where a.is_deleted = 'N'
|
|
where a.is_deleted = 'N'
|
|
and a.qc_type_id != 0
|
|
and a.qc_type_id != 0
|
|
- and a.is_placefile = 1
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="filterFlag != null and filterFlag == 0">
|
|
<if test="filterFlag != null and filterFlag == 0">
|
|
and
|
|
and
|
|
not EXISTS (
|
|
not EXISTS (
|
|
@@ -240,7 +246,9 @@
|
|
select * from med_behospital_info b
|
|
select * from med_behospital_info b
|
|
where b.is_deleted = 'N'
|
|
where b.is_deleted = 'N'
|
|
and b.qc_type_id != 0
|
|
and b.qc_type_id != 0
|
|
- and b.is_placefile = 1
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and b.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="startLeaveDate != null">
|
|
<if test="startLeaveDate != null">
|
|
<![CDATA[ and b.leave_hospital_date >= #{startLeaveDate}]]>
|
|
<![CDATA[ and b.leave_hospital_date >= #{startLeaveDate}]]>
|
|
</if>
|
|
</if>
|
|
@@ -505,7 +513,9 @@
|
|
med_behospital_info a
|
|
med_behospital_info a
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -529,7 +539,9 @@
|
|
AND b.is_deleted = 'N'
|
|
AND b.is_deleted = 'N'
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND (
|
|
AND (
|
|
( IFNULL( b.newborn_day, '' ) != '' AND b.newborn_day != '0' AND b.newborn_day != '-' )
|
|
( IFNULL( b.newborn_day, '' ) != '' AND b.newborn_day != '0' AND b.newborn_day != '-' )
|
|
OR ( IFNULL( b.newborn_month, '' )!= '' AND b.newborn_month != '0' AND b.newborn_month != '-' )
|
|
OR ( IFNULL( b.newborn_month, '' )!= '' AND b.newborn_month != '0' AND b.newborn_month != '-' )
|
|
@@ -559,7 +571,9 @@
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND b.return_to_type = '死亡'
|
|
AND b.return_to_type = '死亡'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -587,7 +601,9 @@
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND c.mode_id = d.id
|
|
AND c.mode_id = d.id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND d.`name` = '手术记录'
|
|
AND d.`name` = '手术记录'
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -616,7 +632,9 @@
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND a.beh_dept_id = c.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
AND c.user_id = #{userId}
|
|
AND c.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
@@ -657,7 +675,9 @@
|
|
( IFNULL( b.newborn_day, '' ) != '' AND b.newborn_day != '0' AND b.newborn_day != '-' )
|
|
( IFNULL( b.newborn_day, '' ) != '' AND b.newborn_day != '0' AND b.newborn_day != '-' )
|
|
OR ( IFNULL( b.newborn_month, '' )!= '' AND b.newborn_month != '0' AND b.newborn_month != '-' )
|
|
OR ( IFNULL( b.newborn_month, '' )!= '' AND b.newborn_month != '0' AND b.newborn_month != '-' )
|
|
)
|
|
)
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
AND c.user_id = #{userId}
|
|
AND c.user_id = #{userId}
|
|
@@ -696,7 +716,9 @@
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND b.return_to_type = '死亡'
|
|
AND b.return_to_type = '死亡'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
AND c.user_id = #{userId}
|
|
AND c.user_id = #{userId}
|
|
@@ -738,7 +760,9 @@
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND d.mode_id = e.id
|
|
AND d.mode_id = e.id
|
|
AND e.`name` = '手术记录'
|
|
AND e.`name` = '手术记录'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
AND c.user_id = #{userId}
|
|
AND c.user_id = #{userId}
|
|
@@ -785,7 +809,9 @@
|
|
AND a.is_deleted = 'N'
|
|
AND a.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="filterPageVO.isPlacefile != null and filterPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{filterPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
@@ -820,7 +846,9 @@
|
|
AND a.is_deleted = 'N'
|
|
AND a.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="filterPageVO.isPlacefile != null and filterPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{filterPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
@@ -870,7 +898,9 @@
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND e.is_deleted = 'N'
|
|
AND e.is_deleted = 'N'
|
|
AND a.beh_dept_id = e.dept_id
|
|
AND a.beh_dept_id = e.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="filterPageByDeptVO.isPlacefile != null and filterPageByDeptVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{filterPageByDeptVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
@@ -916,7 +946,9 @@
|
|
AND d.is_deleted = 'N'
|
|
AND d.is_deleted = 'N'
|
|
AND e.is_deleted = 'N'
|
|
AND e.is_deleted = 'N'
|
|
AND a.beh_dept_id = e.dept_id
|
|
AND a.beh_dept_id = e.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="filterPageByDeptVO.isPlacefile != null and filterPageByDeptVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{filterPageByDeptVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
@@ -987,7 +1019,9 @@
|
|
AND c.is_deleted = 'N'
|
|
AND c.is_deleted = 'N'
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1029,7 +1063,9 @@
|
|
AND a.behospital_code = d.behospital_code
|
|
AND a.behospital_code = d.behospital_code
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1168,7 +1204,9 @@
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.beh_dept_id = d.dept_id
|
|
AND a.beh_dept_id = d.dept_id
|
|
AND d.parent_dept_id = e.dept_id
|
|
AND d.parent_dept_id = e.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1225,7 +1263,9 @@
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND f.parent_dept_id = g.dept_id
|
|
AND f.parent_dept_id = g.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1365,8 +1405,9 @@
|
|
AND a.hospital_id = d.hospital_id
|
|
AND a.hospital_id = d.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.beh_dept_id = d.dept_id
|
|
AND a.beh_dept_id = d.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1431,8 +1472,9 @@
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND a.beh_dept_id = f.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1559,7 +1601,9 @@
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND c.cases_id = 243
|
|
AND c.cases_id = 243
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1603,7 +1647,9 @@
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1661,7 +1707,9 @@
|
|
AND b.cases_id = c.cases_id
|
|
AND b.cases_id = c.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -1796,7 +1844,9 @@
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.beh_dept_id = e.dept_id
|
|
AND a.beh_dept_id = e.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1847,7 +1897,9 @@
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND a.beh_dept_id = f.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1970,7 +2022,9 @@
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND c.cases_id = 243
|
|
AND c.cases_id = 243
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2028,7 +2082,9 @@
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_id = e.cases_id
|
|
AND d.cases_entry_id = e.id
|
|
AND d.cases_entry_id = e.id
|
|
AND c.cases_id = 243
|
|
AND c.cases_id = 243
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2101,7 +2157,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.beh_dept_id = e.dept_id
|
|
AND a.beh_dept_id = e.dept_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -2849,7 +2907,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -3018,7 +3078,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.userId != null and qcResultShortPageVO.userId != ''">
|
|
<if test="qcResultShortPageVO.userId != null and qcResultShortPageVO.userId != ''">
|
|
AND e.user_id = #{qcResultShortPageVO.userId}
|
|
AND e.user_id = #{qcResultShortPageVO.userId}
|
|
</if>
|
|
</if>
|
|
@@ -3250,7 +3312,9 @@
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND b.mode_id = 30
|
|
AND b.mode_id = 30
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3305,7 +3369,9 @@
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND b.home_page_id = c.home_page_id
|
|
AND b.home_page_id = c.home_page_id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3356,7 +3422,9 @@
|
|
AND b.is_deleted = 'N'
|
|
AND b.is_deleted = 'N'
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3407,7 +3475,9 @@
|
|
DAY,
|
|
DAY,
|
|
DATE( behospital_date ),
|
|
DATE( behospital_date ),
|
|
DATE( leave_hospital_date ))> 30
|
|
DATE( leave_hospital_date ))> 30
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3509,7 +3579,9 @@
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND b.leave_hospital_type = '非医嘱离院'
|
|
AND b.leave_hospital_type = '非医嘱离院'
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3564,7 +3636,9 @@
|
|
med_behospital_info a
|
|
med_behospital_info a
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
AND IFNULL( a.diagnose, '' )!= ''
|
|
AND IFNULL( a.diagnose, '' )!= ''
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
@@ -3586,7 +3660,9 @@
|
|
med_behospital_info tt2
|
|
med_behospital_info tt2
|
|
WHERE
|
|
WHERE
|
|
tt2.is_deleted = 'N'
|
|
tt2.is_deleted = 'N'
|
|
- AND tt2.is_placefile = 1
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and tt2.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND tt2.qc_type_id != 0
|
|
AND tt2.qc_type_id != 0
|
|
AND tt1.file_code = tt2.file_code
|
|
AND tt1.file_code = tt2.file_code
|
|
AND tt1.diagnose = tt2.diagnose
|
|
AND tt1.diagnose = tt2.diagnose
|
|
@@ -3631,7 +3707,9 @@
|
|
med_behospital_info a
|
|
med_behospital_info a
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
AND IFNULL( a.diagnose, '' )!= ''
|
|
AND IFNULL( a.diagnose, '' )!= ''
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
@@ -3704,7 +3782,9 @@
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.hospital_id = c.hospital_id
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND c.cases_id = 243
|
|
AND c.cases_id = 243
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3751,7 +3831,9 @@
|
|
AND b.cases_id = c.cases_id
|
|
AND b.cases_id = c.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -3849,7 +3931,9 @@
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -3988,7 +4072,9 @@
|
|
AND m3.gmt_create = m4.gmt_create
|
|
AND m3.gmt_create = m4.gmt_create
|
|
AND m3.have_home_page = 1
|
|
AND m3.have_home_page = 1
|
|
AND m4.cases_id = 243
|
|
AND m4.cases_id = 243
|
|
- AND m1.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and m1.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND m1.qc_type_id != 0
|
|
AND m1.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND m1.hospital_id = #{hospitalId}
|
|
AND m1.hospital_id = #{hospitalId}
|
|
@@ -4020,7 +4106,9 @@
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.behospital_code = e.behospital_code
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
AND d.score_res > e.score_res
|
|
AND d.score_res > e.score_res
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -4047,7 +4135,9 @@
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4097,7 +4187,9 @@
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4132,7 +4224,9 @@
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND ifnull(c.`status`,0) = 1
|
|
AND ifnull(c.`status`,0) = 1
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -4168,7 +4262,9 @@
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4220,7 +4316,9 @@
|
|
AND m3.gmt_create = m4.gmt_create
|
|
AND m3.gmt_create = m4.gmt_create
|
|
AND m3.have_home_page = 1
|
|
AND m3.have_home_page = 1
|
|
AND m4.cases_id = 243
|
|
AND m4.cases_id = 243
|
|
- AND m1.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and m1.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
AND m1.qc_type_id != 0
|
|
AND m1.qc_type_id != 0
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND m1.hospital_id = #{hospitalId}
|
|
AND m1.hospital_id = #{hospitalId}
|
|
@@ -4424,7 +4522,9 @@
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4597,7 +4697,9 @@
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4810,7 +4912,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -4994,7 +5098,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -5121,7 +5227,9 @@
|
|
AND a.behospital_code = c.behospital_code
|
|
AND a.behospital_code = c.behospital_code
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = '1'
|
|
|
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
AND a.hospital_id = #{hospitalId}
|
|
AND a.hospital_id = #{hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -5226,7 +5334,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -5392,7 +5502,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|
|
@@ -5539,7 +5651,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
- AND a.is_placefile = 1
|
|
|
|
|
|
+ <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
|
|
+ and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
<if test="qcResultShortPageVO.hospitalId != null and qcResultShortPageVO.hospitalId != ''">
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
</if>
|
|
</if>
|