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'