fix:菜品统计修改

This commit is contained in:
dzc committed 2025-05-13 15:36:51 +08:00
1 parent 999b3469be
commit d35e9641ca
1 file changed
+2 -2
@@ -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'