From be0aca28659777da0926d57ec29398a207fe2ecf Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 28 Jun 2019 14:07:29 +0800 Subject: [PATCH] =?UTF-8?q?-=20GetStores=E8=BF=94=E5=9B=9E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=95=B0=E6=8D=AEOrderCount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 461d898bf..36f8e8a6f 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -45,6 +45,8 @@ type StoreExt struct { CourierMapStr string `json:"-"` StoreMaps []interface{} `orm:"-"` CourierMaps []interface{} `orm:"-"` + + OrderCount int `json:"orderCount"` } type StoresInfo struct { @@ -387,6 +389,7 @@ func filterStoreByOrderInfo(db *dao.DaoDB, inStores []*StoreExt, orderTimeFrom, for _, v := range inStores { orderCount := storeOrderCountMap[v.ID] if orderCount >= orderCountFrom && orderCount <= orderCountTo { + v.OrderCount = orderCount outStores = append(outStores, v) } }