feat:交易人数
This commit is contained in:
1 parent
91a101d24c
commit
7356a11c8a
2 files changed
+5
-1
No files matched your search
+3
@@ -14,6 +14,9 @@ public class HardCanteenProductTotalVo {
|
||||
@Schema(description = "用餐时间段(早中晚)")
|
||||
private String hourType;
|
||||
|
||||
@Schema(description = "购买人次")
|
||||
private Long payUserCount;
|
||||
|
||||
@Schema(description = "食品总数量")
|
||||
private Long payCount;
|
||||
|
||||
|
||||
+2
-1
@@ -54,7 +54,8 @@
|
||||
o.hour_type,
|
||||
COUNT(0) as timeCount,
|
||||
SUM(a.product_count) as payCount,
|
||||
SUM(a.total_price) as totalPrice
|
||||
SUM(a.total_price) as totalPrice,
|
||||
count(distinct o.user_id) as payUserCount
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user