diff --git a/bd-business/bd-business-sale/src/main/resources/mapper/sale/order/SaOrderMapper.xml b/bd-business/bd-business-sale/src/main/resources/mapper/sale/order/SaOrderMapper.xml index feccd836..b15bf328 100644 --- a/bd-business/bd-business-sale/src/main/resources/mapper/sale/order/SaOrderMapper.xml +++ b/bd-business/bd-business-sale/src/main/resources/mapper/sale/order/SaOrderMapper.xml @@ -662,7 +662,7 @@ where so.DEL_FLAG = 0 and ver.DEL_FLAG = 0 - and oi.pk_order in ( + and so.PK_ID in ( select distinct soi.pk_order from sa_order_items soi where soi.is_maker_gift = 3