Przeglądaj źródła

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

release_toaliyun_real
Stormeye Wu 7 lat temu
rodzic
commit
83ec13bce4
1 zmienionych plików z 1 dodań i 4 usunięć
  1. +1
    -4
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 1
- 4
mallinkService/src/main/resources/mapper/WxOrderMapper.xml Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz