1
This commit is contained in:
@@ -1691,3 +1691,19 @@ func GetStoreBaseByVendorStoreID(vendorStoreID string, vendorID int) (storeDetai
|
||||
}
|
||||
return storeDetail, err
|
||||
}
|
||||
|
||||
type StatisticsStore struct {
|
||||
Count int64 `json:"count"` // 条数
|
||||
Status int `json:"status"` // 状态
|
||||
}
|
||||
|
||||
// StatisticsStoreInfo 统计所有的门店信息
|
||||
func StatisticsStoreInfo() ([]*StatisticsStore, error) {
|
||||
statistics := make([]*StatisticsStore, 0, 0)
|
||||
|
||||
sql := ` select count(s.status) , s.status from store s GROUP BY s.status `
|
||||
if err := GetRows(GetDB(), &statistics, sql, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return statistics, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user