From c4017669a3fb411214e2716a5f11dc1a3c5e0a58 Mon Sep 17 00:00:00 2001 From: gongzuming <gongzuming> Date: 星期一, 02 九月 2024 14:04:38 +0800 Subject: [PATCH] fix bug --- 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