Explorar el Código

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

release_toaliyun_real
Stormeye Wu hace 7 años
padre
commit
83ec13bce4
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. +1
    -4
      mallinkService/src/main/resources/mapper/WxOrderMapper.xml

+ 1
- 4
mallinkService/src/main/resources/mapper/WxOrderMapper.xml Ver fichero

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


Cargando…
Cancelar
Guardar