|
@@ -366,6 +366,12 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="startDate!=null">
|
|
|
+ AND gmt_create >= #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate!=null">
|
|
|
+ AND gmt_create <= #{endDate}
|
|
|
+ </if>
|
|
|
-- AND hospital_code !='朗通通用'
|
|
|
) t1 where t1.hospitalCode = a.hospitalCode
|
|
|
GROUP BY
|
|
@@ -385,6 +391,12 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="startDate!=null">
|
|
|
+ AND gmt_create >= #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate!=null">
|
|
|
+ AND gmt_create <= #{endDate}
|
|
|
+ </if>
|
|
|
) t2 where t2.hospitalCode = a.hospitalCode
|
|
|
GROUP BY
|
|
|
hospitalCode
|
|
@@ -435,8 +447,15 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 1
|
|
|
+ <if test="startDate!=null">
|
|
|
+ AND gmt_create >= #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate!=null">
|
|
|
+ AND gmt_create <= #{endDate}
|
|
|
+ </if>
|
|
|
-- AND hospital_code !='朗通通用'
|
|
|
) t1 where t1.hospitalCode = a.hospitalCode
|
|
|
+
|
|
|
GROUP BY
|
|
|
hospitalCode
|
|
|
) AS uvSum,
|
|
@@ -454,6 +473,12 @@
|
|
|
zzcx_opt_info
|
|
|
WHERE
|
|
|
opt_type = 2
|
|
|
+ <if test="startDate!=null">
|
|
|
+ AND gmt_create >= #{startDate}
|
|
|
+ </if>
|
|
|
+ <if test="endDate!=null">
|
|
|
+ AND gmt_create <= #{endDate}
|
|
|
+ </if>
|
|
|
) t2 where t2.hospitalCode = a.hospitalCode
|
|
|
GROUP BY
|
|
|
hospitalCode
|