winter 2 лет назад
Родитель
Сommit
2e6413b3c8
1 измененных файлов: 10 добавлений и 10 удалений
  1. +10
    -10
      mallinkService/src/main/resources/mapper/NeuPosOrderMasterExtMapper.xml

+ 10
- 10
mallinkService/src/main/resources/mapper/NeuPosOrderMasterExtMapper.xml Просмотреть файл

@@ -396,18 +396,18 @@ SELECT
FROM
pay_order_v2 AS p
LEFT JOIN order_master_v2 AS o ON p.m_order_number = o.order_number
where order_master_v2.org_id = #{orgId}
where o.org_id = #{orgId}
<if test=" shopId != null">
and order_master_v2.shop_id = #{shopId}
and o.shop_id = #{shopId}
</if>
<if test=" createBegin != null">
and pay_order_v2.created_at &gt;= #{createBegin}
and p.created_at &gt;= #{createBegin}
</if>
<if test=" createEnd != null">
and pay_order_v2.created_at &lt;= #{createEnd}
and p.created_at &lt;= #{createEnd}
</if>
<if test=" createBy != null">
and pay_order_v2.created_by = #{createBy}
and p.created_by = #{createBy}
</if>
AND ( p.pay_status = 2 OR p.pay_status = 5 OR p.pay_status = 4 )
AND p.pay_type != 29
@@ -424,18 +424,18 @@ SELECT
FROM
pay_refund_order_v2 AS r
LEFT JOIN order_master_v2 AS o ON r.m_order_number = o.order_number
where order_master_v2.org_id = #{orgId}
where o.org_id = #{orgId}
<if test=" shopId != null">
and order_master_v2.shop_id = #{shopId}
and o.shop_id = #{shopId}
</if>
<if test=" createBegin != null">
and pay_order_v2.created_at &gt;= #{createBegin}
and r.created_at &gt;= #{createBegin}
</if>
<if test=" createEnd != null">
and pay_order_v2.created_at &lt;= #{createEnd}
and r.created_at &lt;= #{createEnd}
</if>
<if test=" createBy != null">
and pay_order_v2.created_by = #{createBy}
and r.created_by = #{createBy}
</if>
AND ( r.refund_status = 2 )
AND r.pay_type != 29


Загрузка…
Отмена
Сохранить