ソースを参照

[交易对账单][修改]:合并sql

release_toaliyun_real
Stormeye Wu 7年前
コミット
83ec13bce4
1個のファイルの変更1行の追加4行の削除
  1. +1
    -4
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 1
- 4
mallinkService/src/main/resources/mapper/WxOrderMapper.xml ファイルの表示

@@ -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">


読み込み中…
キャンセル
保存