|
|
|
@@ -536,10 +536,7 @@ |
|
|
|
<select id="queryOrderForSum" resultType="Long" parameterType="hashmap"> |
|
|
|
select ifnull(sum(o.payment),0) payment from ( |
|
|
|
select o.* from wx_order o |
|
|
|
where o.type = 0 and o.order_status = #{order_status} |
|
|
|
union all |
|
|
|
select o.* from wx_order o |
|
|
|
where o.type in (1,2) and o.order_status = #{order_status} |
|
|
|
where o.type in (0,1,2) and o.order_status = #{order_status} |
|
|
|
) o |
|
|
|
<where> |
|
|
|
<if test="tenantId!=null"> |
|
|
|
|