Browse Source

[交易对账单][修改]:支付总额修复

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
e2bca23f09
1 changed files with 4 additions and 10 deletions
  1. +4
    -10
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 4
- 10
mallinkService/src/main/resources/mapper/WxOrderMapper.xml View File

@@ -535,17 +535,11 @@
<select id="queryOrderForSum" resultType="Long" parameterType="hashmap">
select ifnull(sum(o.payment),0) payment from (
select o.*,m.`name` merchantName from (
select o.*,cm.merchant_id from wx_order o
left join wx_coupon_merchant cm on o.product_id=cm.product_id
where o.type = 0 and o.order_status = #{order_status}) o
left join wx_merchant m on o.merchant_id=m.id
select o.* from wx_order o
where o.type = 0 and o.order_status = #{order_status}
union all
select o.*,m.`name` merchantName from (
select o.*,mbu.merchant_id from wx_order o
left join wx_merchant_b_user mbu on o.product_id=mbu.id
where o.type in (1,2) and o.order_status = #{order_status}) o
left join wx_merchant m on o.merchant_id=m.id
select o.* from wx_order o
where o.type in (1,2) and o.order_status = #{order_status}
) o
<where>
<if test="tenantId!=null">


Loading…
Cancel
Save