From 863746a802171bbb10ddf8a5cb93e625246ae2ce Mon Sep 17 00:00:00 2001 From: cabbage <281119120@qq.com> Date: Mon, 26 May 2025 09:59:36 +0800 Subject: [PATCH] =?UTF-8?q?##=20=E4=BC=9A=E5=91=98=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8F=AA=E6=9F=A5=E8=AF=A2=E4=BA=A7=E5=93=81ID=E4=B8=8D?= =?UTF-8?q?=E4=B8=BA0=E7=9A=84=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/sale/order/SaOrderMapper.xml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 46b698b9..27397161 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 @@ -683,26 +683,12 @@ from sa_order_items soi where soi.pk_order = so.pk_id and soi.del_flag = 0 + and soi.pk_product != 0 and soi.order_status in #{item} ) - union all - select count(sto.pk_id) pk_id - from sa_t_order sto - where sto.del_flag = 0 - and sto.pk_country = #{pkCountry} - and (sto.pk_member = #{memberId} or sto.pk_creator = #{memberId}) - and exists (select 1 - from sa_t_order_items stoi - where stoi.pk_th_order = sto.pk_id - and stoi.del_flag = 0 - and stoi.order_status in - - #{item} - - ) )