|
@@ -98,8 +98,7 @@
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and t.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
- and t.qc_type_id != 0
|
|
|
- and t.is_placefile = 1) p
|
|
|
+ and t.qc_type_id != 0) p
|
|
|
where p.is_deleted="N"
|
|
|
<if test="checkStatus != null ">
|
|
|
and p.check_status = #{checkStatus}
|
|
@@ -161,7 +160,9 @@
|
|
|
AND a.is_deleted = 'N'
|
|
|
AND c.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -195,7 +196,9 @@
|
|
|
AND a.is_deleted = 'N'
|
|
|
AND c.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -213,7 +216,9 @@
|
|
|
select * from med_behospital_info a
|
|
|
where a.is_deleted = 'N'
|
|
|
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">
|
|
|
and
|
|
|
not EXISTS (
|
|
@@ -241,7 +246,9 @@
|
|
|
select * from med_behospital_info b
|
|
|
where b.is_deleted = 'N'
|
|
|
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">
|
|
|
<![CDATA[ and b.leave_hospital_date >= #{startLeaveDate}]]>
|
|
|
</if>
|
|
@@ -332,8 +339,7 @@
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and t.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
- and t.qc_type_id != 0
|
|
|
- and t.is_placefile = 1) p
|
|
|
+ and t.qc_type_id != 0) p
|
|
|
where p.is_deleted="N"
|
|
|
<if test="checkStatus != null ">
|
|
|
and p.check_status = #{checkStatus}
|
|
@@ -413,8 +419,7 @@
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and t.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
- and t.qc_type_id != 0
|
|
|
- and t.is_placefile = 1) p
|
|
|
+ and t.qc_type_id != 0) p
|
|
|
where p.is_deleted="N"
|
|
|
<if test="checkStatus != null ">
|
|
|
and p.check_status = #{checkStatus}
|
|
@@ -493,8 +498,7 @@
|
|
|
<if test="isPlacefile != null and isPlacefile != ''">
|
|
|
and t.is_placefile = #{isPlacefile}
|
|
|
</if>
|
|
|
- and t.qc_type_id != 0
|
|
|
- and t.is_placefile = 1) p
|
|
|
+ and t.qc_type_id != 0) p
|
|
|
where p.is_deleted="N"
|
|
|
<if test="checkStatus != null ">
|
|
|
and p.check_status = #{checkStatus}
|
|
@@ -509,7 +513,9 @@
|
|
|
med_behospital_info a
|
|
|
WHERE
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -533,7 +539,9 @@
|
|
|
AND b.is_deleted = 'N'
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
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 (
|
|
|
( 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 != '-' )
|
|
@@ -563,7 +571,9 @@
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -591,7 +601,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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` = '手术记录'
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -620,7 +632,9 @@
|
|
|
AND c.is_deleted = 'N'
|
|
|
AND a.hospital_id = c.hospital_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">
|
|
|
AND c.user_id = #{userId}
|
|
|
</if>
|
|
@@ -661,7 +675,9 @@
|
|
|
( 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 != '-' )
|
|
|
)
|
|
|
- AND a.is_placefile = '1'
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
+ </if>
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND c.user_id = #{userId}
|
|
@@ -700,7 +716,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.beh_dept_id = c.dept_id
|
|
|
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 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND c.user_id = #{userId}
|
|
@@ -742,7 +760,9 @@
|
|
|
AND a.beh_dept_id = c.dept_id
|
|
|
AND d.mode_id = e.id
|
|
|
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 ]]>
|
|
|
<if test="userId!=null">
|
|
|
AND c.user_id = #{userId}
|
|
@@ -789,7 +809,9 @@
|
|
|
AND a.is_deleted = 'N'
|
|
|
AND c.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 ]]>
|
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
@@ -824,7 +846,9 @@
|
|
|
AND a.is_deleted = 'N'
|
|
|
AND c.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 ]]>
|
|
|
<if test="filterPageVO.hospitalId != null and filterPageVO.hospitalId != ''">
|
|
|
AND a.hospital_id = #{filterPageVO.hospitalId}
|
|
@@ -874,7 +898,9 @@
|
|
|
AND d.is_deleted = 'N'
|
|
|
AND e.is_deleted = 'N'
|
|
|
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 ]]>
|
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
@@ -920,7 +946,9 @@
|
|
|
AND d.is_deleted = 'N'
|
|
|
AND e.is_deleted = 'N'
|
|
|
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 ]]>
|
|
|
<if test="filterPageByDeptVO.userId!=null">
|
|
|
AND e.user_id = #{filterPageByDeptVO.userId}
|
|
@@ -991,7 +1019,9 @@
|
|
|
AND c.is_deleted = 'N'
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1033,7 +1063,9 @@
|
|
|
AND a.behospital_code = d.behospital_code
|
|
|
AND d.cases_id = e.cases_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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1172,7 +1204,9 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = d.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1229,7 +1263,9 @@
|
|
|
AND d.cases_entry_id = e.id
|
|
|
AND a.beh_dept_id = f.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1369,8 +1405,9 @@
|
|
|
AND a.hospital_id = d.hospital_id
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1435,8 +1472,9 @@
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1563,7 +1601,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1607,7 +1647,9 @@
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1665,7 +1707,9 @@
|
|
|
AND b.cases_id = c.cases_id
|
|
|
AND c.cases_id = d.cases_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 a.qc_type_id != 0
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -1800,7 +1844,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1851,7 +1897,9 @@
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -1974,7 +2022,9 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND a.beh_dept_id = f.dept_id
|
|
|
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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2032,7 +2082,9 @@
|
|
|
AND d.cases_id = e.cases_id
|
|
|
AND d.cases_entry_id = e.id
|
|
|
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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2105,7 +2157,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.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
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -2311,7 +2365,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2358,7 +2414,9 @@
|
|
|
AND b.is_deleted = 'N'
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
- AND a.is_placefile = '1'
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
+ </if>
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2469,7 +2527,9 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.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 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2523,7 +2583,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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>
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2633,7 +2695,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_id = d.id
|
|
|
- AND a.is_placefile = '1'
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
+ </if>
|
|
|
AND a.doctor_id in
|
|
|
(SELECT doctor_id FROM `bas_doctor_info`
|
|
|
where is_deleted = 'N' and hospital_id = #{hospitalId} and group_id in (
|
|
@@ -2700,7 +2764,9 @@
|
|
|
AND b.is_deleted = 'N'
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
- AND a.is_placefile = '1'
|
|
|
+ <if test="isPlacefile != null and isPlacefile != ''">
|
|
|
+ and a.is_placefile = #{isPlacefile}
|
|
|
+ </if>
|
|
|
<![CDATA[AND a.qc_type_id <>0 ]]>
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -2841,7 +2907,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -3010,7 +3078,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND e.user_id = #{qcResultShortPageVO.userId}
|
|
|
</if>
|
|
@@ -3242,7 +3312,9 @@
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3297,7 +3369,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3348,7 +3422,9 @@
|
|
|
AND b.is_deleted = 'N'
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3399,7 +3475,9 @@
|
|
|
DAY,
|
|
|
DATE( behospital_date ),
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3501,7 +3579,9 @@
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3556,7 +3636,9 @@
|
|
|
med_behospital_info a
|
|
|
WHERE
|
|
|
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 IFNULL( a.diagnose, '' )!= ''
|
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
@@ -3578,7 +3660,9 @@
|
|
|
med_behospital_info tt2
|
|
|
WHERE
|
|
|
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 tt1.file_code = tt2.file_code
|
|
|
AND tt1.diagnose = tt2.diagnose
|
|
@@ -3623,7 +3707,9 @@
|
|
|
med_behospital_info a
|
|
|
WHERE
|
|
|
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 IFNULL( a.diagnose, '' )!= ''
|
|
|
AND IFNULL( a.file_code, '' )!= ''
|
|
@@ -3696,7 +3782,9 @@
|
|
|
AND a.hospital_id = c.hospital_id
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -3743,7 +3831,9 @@
|
|
|
AND b.cases_id = c.cases_id
|
|
|
AND c.cases_id = d.cases_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 a.qc_type_id != 0
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
@@ -3841,7 +3931,9 @@
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -3980,7 +4072,9 @@
|
|
|
AND m3.gmt_create = m4.gmt_create
|
|
|
AND m3.have_home_page = 1
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND m1.hospital_id = #{hospitalId}
|
|
@@ -4012,7 +4106,9 @@
|
|
|
AND a.behospital_code = e.behospital_code
|
|
|
AND d.cases_id = 243
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -4039,7 +4135,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -4089,7 +4187,9 @@
|
|
|
AND a.hospital_id = b.hospital_id
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -4124,7 +4224,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
@@ -4160,7 +4262,9 @@
|
|
|
AND a.behospital_code = b.behospital_code
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -4212,7 +4316,9 @@
|
|
|
AND m3.gmt_create = m4.gmt_create
|
|
|
AND m3.have_home_page = 1
|
|
|
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
|
|
|
<if test="hospitalId != null and hospitalId != ''">
|
|
|
AND m1.hospital_id = #{hospitalId}
|
|
@@ -4416,7 +4522,9 @@
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -4589,7 +4697,9 @@
|
|
|
WHERE
|
|
|
a.is_deleted = 'N'
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -4802,7 +4912,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -4986,7 +5098,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -5113,7 +5227,9 @@
|
|
|
AND a.behospital_code = c.behospital_code
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
@@ -5218,7 +5334,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -5384,7 +5502,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|
|
@@ -5531,7 +5651,9 @@
|
|
|
AND c.cases_id = d.cases_id
|
|
|
AND c.cases_entry_id = d.id
|
|
|
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 != ''">
|
|
|
AND a.hospital_id = #{qcResultShortPageVO.hospitalId}
|
|
|
</if>
|