|
@@ -143,7 +143,7 @@
|
|
|
and o.create_time <![CDATA[ <= ]]> #{nextDay, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
union
|
|
|
select 0 as num1, count(1) as num2 ,0 as num3,0 as num4,0 as num5,0 as num6, 0 as num7, 0 as num8, 0 as num9 from bt_order
|
|
@@ -156,7 +156,7 @@
|
|
|
where 1 = 1
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
and o.order_status='4'
|
|
|
union
|
|
@@ -169,7 +169,7 @@
|
|
|
where 1 = 1
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
and o.order_status='4'
|
|
|
union
|
|
@@ -189,8 +189,9 @@
|
|
|
and o.create_time <![CDATA[ <= ]]> #{nextDay, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
+ and o.order_status='1'
|
|
|
union
|
|
|
select 0,0,0,0,count(1) as num5,0, 0, 0, 0 from bt_order o
|
|
|
<if test="orgIds != null and orgIds != ''">
|
|
@@ -207,8 +208,9 @@
|
|
|
and o.create_time <![CDATA[ <= ]]> #{now, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
+ and o.order_status='1'
|
|
|
union
|
|
|
select 0,0,0,0,0,sum(o.order_amount) as num6, 0, 0, 0 from bt_order o
|
|
|
<if test="orgIds != null and orgIds != ''">
|
|
@@ -225,7 +227,7 @@
|
|
|
and o.create_time <![CDATA[ <= ]]> #{now, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
and o.order_status = '1'
|
|
|
union
|
|
@@ -252,7 +254,7 @@
|
|
|
and o.create_time <![CDATA[ <= ]]> #{now, jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="id != null">
|
|
|
- and o.id = #{id}
|
|
|
+ and o.order_equ_id = #{id}
|
|
|
</if>
|
|
|
and o.order_status = '1'
|
|
|
union
|