This commit is contained in:
苏尹岚
2021-01-22 10:56:01 +08:00
parent a7ea8301b1
commit 7bc90281ff

View File

@@ -347,16 +347,21 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
for k, _ := range storeIDMap {
storeIDs = append(storeIDs, k)
}
fmt.Println("brandIDMap", brandIDMap)
if brandIDMap[0] != 0 {
if cityCodeMap[0] != 0 {
fmt.Println("11111111111111111111111111111111111111")
stores, err = dao.GetStoreList(db, nil, nil, nil, nil, nil, "")
} else {
fmt.Println("22222222222222222222222222222222222222222")
stores, err = dao.GetStoreList(db, storeIDs, cityCodes, nil, nil, nil, "")
}
} else {
if cityCodeMap[0] != 0 {
fmt.Println("33333333333333333333333333333333333")
stores, err = dao.GetStoreList(db, nil, nil, nil, brandIDs, nil, "")
} else {
fmt.Println("44444444444444444444444444444444444444")
stores, err = dao.GetStoreList(db, storeIDs, cityCodes, nil, brandIDs, nil, "")
}
}