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