From c75529903924a61a5ddf92b394fa79de04460bed Mon Sep 17 00:00:00 2001 From: cabbage <281119120@qq.com> Date: Wed, 14 May 2025 09:09:16 +0800 Subject: [PATCH] =?UTF-8?q?##=20=E7=9C=8B=E6=9D=BF=E5=A4=8D=E8=B4=AD?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E9=87=8D=E6=B6=88=E5=A4=84=E7=90=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/system/board/BoardMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml b/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml index 3943adc7..f0b1cb96 100644 --- a/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml +++ b/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml @@ -151,7 +151,7 @@ ) a left join ( select nvl(sum(so.order_achieve), 0) rep_achieve, - nvl(sum(so.order_amount), 0) rep_amount + nvl(sum(so.order_amount - nvl(so.CONSUME_AMOUNT, 0)), 0) rep_amount from sa_order so where so.del_flag = 0 and so.order_status = 1