|
@@ -95,15 +95,15 @@
|
|
|
or t.beh_doctor_id = #{doctorCode}
|
|
|
or t.director_doctor_id = #{doctorCode})
|
|
|
</if>
|
|
|
- <if test="fileCode != null and fileCode != ''">
|
|
|
- and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
- </if>
|
|
|
<if test="hospitalId != null">
|
|
|
and t.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
|
and t.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
|
</if>
|
|
|
+ <if test="fileCode != null and fileCode != ''">
|
|
|
+ and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and t.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -364,15 +364,15 @@
|
|
|
or t.beh_doctor_id = #{doctorCode}
|
|
|
or t.director_doctor_id = #{doctorCode})
|
|
|
</if>
|
|
|
- <if test="fileCode != null and fileCode != ''">
|
|
|
- and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
- </if>
|
|
|
<if test="hospitalId != null">
|
|
|
and t.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
|
and t.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
|
</if>
|
|
|
+ <if test="fileCode != null and fileCode != ''">
|
|
|
+ and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and t.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -1211,15 +1211,15 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
and t.name like CONCAT('%',#{name},'%')
|
|
|
</if>
|
|
|
- <if test="fileCode != null and fileCode != ''">
|
|
|
- and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
- </if>
|
|
|
<if test="hospitalId != null">
|
|
|
and t.hospital_id = #{hospitalId}
|
|
|
</if>
|
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
|
and t.behospital_code like CONCAT('%',#{behospitalCode},'%')
|
|
|
</if>
|
|
|
+ <if test="fileCode != null and fileCode != ''">
|
|
|
+ and t.file_code like CONCAT('%',#{fileCode},'%')
|
|
|
+ </if>
|
|
|
<if test="behosDateStart != null">
|
|
|
<![CDATA[ and t.behospital_date >= #{behosDateStart}]]>
|
|
|
</if>
|
|
@@ -5674,6 +5674,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -5945,6 +5948,10 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
+
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -6207,6 +6214,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -7870,6 +7880,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -8118,6 +8131,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -12502,6 +12518,12 @@
|
|
|
<if test="behospitalCode != null and behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="fileCode != null and fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{fileCode}, '%' )
|
|
|
+ </if>
|
|
|
+ <if test="fileCode != null and fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="patName != null and patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{patName}, '%' )
|
|
|
</if>
|
|
@@ -12692,6 +12714,9 @@
|
|
|
<if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultPageVO.fileCode != null and qcResultPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultPageVO.patName != null and qcResultPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -12888,6 +12913,9 @@
|
|
|
<if test="qcResultPageVO.behospitalCode != null and qcResultPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultPageVO.fileCode != null and qcResultPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultPageVO.patName != null and qcResultPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -13105,6 +13133,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -13315,6 +13346,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -16776,6 +16810,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -17031,6 +17068,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -17217,6 +17257,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -17405,6 +17448,9 @@
|
|
|
<if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="qcResultShortPageVO.fileCode != null and qcResultShortPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{qcResultShortPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="qcResultShortPageVO.patName != null and qcResultShortPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{qcResultShortPageVO.patName}, '%' )
|
|
|
</if>
|
|
@@ -20725,6 +20771,9 @@
|
|
|
<if test="getDetailRecordListPageVO.behospitalCode != null and getDetailRecordListPageVO.behospitalCode != ''">
|
|
|
AND a.behospital_code LIKE CONCAT( '%', #{getDetailRecordListPageVO.behospitalCode}, '%' )
|
|
|
</if>
|
|
|
+ <if test="getDetailRecordListPageVO.fileCode != null and getDetailRecordListPageVO.fileCode != ''">
|
|
|
+ AND a.file_code LIKE CONCAT( '%', #{getDetailRecordListPageVO.fileCode}, '%' )
|
|
|
+ </if>
|
|
|
<if test="getDetailRecordListPageVO.patName != null and getDetailRecordListPageVO.patName != ''">
|
|
|
AND a.NAME LIKE CONCAT( '%', #{getDetailRecordListPageVO.patName}, '%' )
|
|
|
</if>
|