From d35e9641ca0eb274ba82de5aa034578ee6e6563a Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 13 May 2025 15:36:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=8F=9C=E5=93=81=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/order/HardCarMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pjcloud-hardware/pjcloud-hardware-biz/src/main/resources/mapper/order/HardCarMapper.xml b/pjcloud-hardware/pjcloud-hardware-biz/src/main/resources/mapper/order/HardCarMapper.xml index 00ca66b19..60edce202 100644 --- a/pjcloud-hardware/pjcloud-hardware-biz/src/main/resources/mapper/order/HardCarMapper.xml +++ b/pjcloud-hardware/pjcloud-hardware-biz/src/main/resources/mapper/order/HardCarMapper.xml @@ -53,7 +53,7 @@ select DATE_FORMAT(a.create_time, '%Y-%m-%d') as createTime, o.hour_type, SUM(a.product_count) as payCount, - SUM(a.total_price) as totalPrice + SUM(a.product_price * a.product_count) as totalPrice from hard_car a inner join hard_parent_car p on a.parent_car_id = p.id and p.del_flag = '0' inner join hard_order o on o.parent_car_id = p.id and o.del_flag = '0' and o.hour_type is not null @@ -122,7 +122,7 @@ a.product_pic, a.product_price, SUM(a.product_count) as count, - SUM(a.product_price) as totalPrice, + SUM(a.product_price * a.product_count) as totalPrice, DATE_FORMAT(a.create_time, '%Y-%m-%d') as create_time from hard_car a inner join hard_parent_car p on a.parent_car_id = p.id and p.del_flag = '0'