|
@@ -10,6 +10,7 @@
|
|
|
<result column="gmt_modified" property="gmtModified" />
|
|
|
<result column="creator" property="creator" />
|
|
|
<result column="modifier" property="modifier" />
|
|
|
+ <result column="hospital_code" property="hospitalCode" />
|
|
|
<result column="ip" property="ip" />
|
|
|
<result column="opt_type" property="optType" />
|
|
|
<result column="remark" property="remark" />
|
|
@@ -23,6 +24,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -42,6 +46,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -63,6 +70,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -88,6 +98,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -110,6 +123,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|
|
@@ -135,6 +151,9 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="hospitalCode != null and hospitalCode != ''">
|
|
|
+ AND hospital_code = #{hospitalCode}
|
|
|
+ </if>
|
|
|
<if test="startDate!=null">
|
|
|
AND gmt_create >= #{startDate}
|
|
|
</if>
|