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) } }