diff --git a/cash-service/order-service/src/main/resources/mapper/ShopProdStatisticMapper.xml b/cash-service/order-service/src/main/resources/mapper/ShopProdStatisticMapper.xml index b3b115a4d..1e7ae8838 100644 --- a/cash-service/order-service/src/main/resources/mapper/ShopProdStatisticMapper.xml +++ b/cash-service/order-service/src/main/resources/mapper/ShopProdStatisticMapper.xml @@ -84,8 +84,8 @@ SELECT sum(detail.num-detail.return_num) as saleCount, sum(detail.pay_amount) as totalAmount, - sum(detail.refund_num) refundCount, - sum(detail.return_amount) refundAmount + sum(detail.refund_num) as refundCount, + sum(detail.return_amount) as refundAmount FROM tb_order_info `order` INNER JOIN tb_order_detail detail ON `order`.id = detail.order_id @@ -104,7 +104,7 @@