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