This commit is contained in:
苏尹岚
2021-01-22 10:36:18 +08:00
parent 618ae4c251
commit 370b606575

View File

@@ -339,14 +339,18 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
} }
} }
for k, _ := range brandIDMap { for k, _ := range brandIDMap {
if k != 0 {
brandIDs = append(brandIDs, k) brandIDs = append(brandIDs, k)
} }
}
for k, _ := range cityCodeMap { for k, _ := range cityCodeMap {
cityCodes = append(cityCodes, k) cityCodes = append(cityCodes, k)
} }
for k, _ := range storeIDMap { for k, _ := range storeIDMap {
if k != 0 {
storeIDs = append(storeIDs, k) storeIDs = append(storeIDs, k)
} }
}
if cityCodeMap[0] != 0 { if cityCodeMap[0] != 0 {
stores, err = dao.GetStoreList(db, nil, nil, nil, brandIDs, nil, "") stores, err = dao.GetStoreList(db, nil, nil, nil, brandIDs, nil, "")
} else { } else {