From 26aa372c2da659f709344c4e9d9e63bc1c20d9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 15 Jun 2026 18:10:35 +0800 Subject: [PATCH] 1 --- business/model/dao/mt_avtivity_station.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/model/dao/mt_avtivity_station.go b/business/model/dao/mt_avtivity_station.go index c2562c1b3..d298e7566 100644 --- a/business/model/dao/mt_avtivity_station.go +++ b/business/model/dao/mt_avtivity_station.go @@ -65,6 +65,7 @@ func GetStatistics(db *DaoDB, startTime, endTime time.Time, storeId []int, offse type StatisticsOrderObj struct { OrderCount int64 `json:"order_count"` + StoreCount int64 `json:"store_count"` Name string `json:"name"` Mobile string `json:"mobile"` } @@ -74,6 +75,7 @@ func StatisticsOrderCount(db *DaoDB, startTime, endTime time.Time, storeId []int sql := ` SELECT SQL_CALC_FOUND_ROWS COUNT(a.vendor_order_id) AS order_count, + COUNT(DISTINCT b.id) AS store_count, c.name AS name, c.mobile AS mobile FROM goods_order a