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

View File

@@ -339,13 +339,17 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
} }
} }
for k, _ := range brandIDMap { for k, _ := range brandIDMap {
brandIDs = append(brandIDs, k) if k != 0 {
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 {
storeIDs = append(storeIDs, k) if k != 0 {
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, "")