|
@@ -16,6 +16,10 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
group by order_status_text
|
|
|
union
|
|
|
select
|
|
@@ -31,6 +35,9 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
union
|
|
|
select
|
|
|
count(distinct a.id) 'total',
|
|
@@ -45,6 +52,9 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
union
|
|
|
select
|
|
|
count(distinct a.id) 'total',
|
|
@@ -59,6 +69,9 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
union
|
|
|
select
|
|
|
count(distinct a.id) 'total',
|
|
@@ -73,6 +86,9 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
union
|
|
|
select
|
|
|
count(distinct a.id) 'total',
|
|
@@ -87,6 +103,9 @@
|
|
|
<if test="orderSmallTypeText != null and orderSmallTypeText != ''">
|
|
|
and a.order_small_type_text = #{orderSmallTypeText}
|
|
|
</if>
|
|
|
+ <if test="startTime != null and startTime != ''">
|
|
|
+ and a.create_time between #{startTime} and #{endTime}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="countOrderBaseIndex" resultType="com.gree.mall.manager.bean.workorder.OrderBaseCountBean">
|