|
@@ -23,6 +23,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 1
|
|
opt_type = 1
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -42,6 +45,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 1
|
|
opt_type = 1
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -63,6 +69,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 1
|
|
opt_type = 1
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -88,6 +97,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 1
|
|
opt_type = 1
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -110,6 +122,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 2
|
|
opt_type = 2
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|
|
@@ -135,6 +150,9 @@
|
|
zzcx_opt_info
|
|
zzcx_opt_info
|
|
WHERE
|
|
WHERE
|
|
opt_type = 2
|
|
opt_type = 2
|
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
|
+ </if>
|
|
<if test="startDate!=null">
|
|
<if test="startDate!=null">
|
|
AND gmt_create >= #{startDate}
|
|
AND gmt_create >= #{startDate}
|
|
</if>
|
|
</if>
|