From cb517279ac03173f5b8d459de0a336f010aec599 Mon Sep 17 00:00:00 2001 From: gongzuming <gongzuming> Date: 星期四, 29 八月 2024 16:01:47 +0800 Subject: [PATCH] 积分相关 --- src/main/resources/mapper/payment/OrderItemSalesMapper.xml | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/payment/OrderItemSalesMapper.xml b/src/main/resources/mapper/payment/OrderItemSalesMapper.xml index 1cabdc5..5a29bcd 100644 --- a/src/main/resources/mapper/payment/OrderItemSalesMapper.xml +++ b/src/main/resources/mapper/payment/OrderItemSalesMapper.xml @@ -77,6 +77,10 @@ join t_order o on si.order_id = o.id left join t_station s on s.id = oi.station_id WHERE oi.deleted = 0 + <if test="condition.orderItemId != null and condition.orderItemId != ''"> + AND si.order_item_id = #{condition.orderItemId} + </if> + <if test="condition.orderId != null and condition.orderId != ''"> AND si.order_id = #{condition.orderId} </if> -- Gitblit v1.9.3