aa
This commit is contained in:
@@ -370,7 +370,7 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) {
|
|||||||
if v.StoreIDs != "" {
|
if v.StoreIDs != "" {
|
||||||
storeIDs = append(storeIDs, jxutils.StrListToIntList(strings.Split(v.StoreIDs, ","))...)
|
storeIDs = append(storeIDs, jxutils.StrListToIntList(strings.Split(v.StoreIDs, ","))...)
|
||||||
}
|
}
|
||||||
if stores, err := dao.GetStoreList(db, storeIDs, cityCodes, brandIDs, nil, nil, ""); len(stores) > 0 && err == nil {
|
if stores, err := dao.GetStoreList(db, storeIDs, cityCodes, nil, brandIDs, nil, ""); len(stores) > 0 && err == nil {
|
||||||
for _, v := range stores {
|
for _, v := range stores {
|
||||||
if _, ok := resultMap[v.ID]; !ok {
|
if _, ok := resultMap[v.ID]; !ok {
|
||||||
resultMap[v.ID] = v.ID
|
resultMap[v.ID] = v.ID
|
||||||
|
|||||||
Reference in New Issue
Block a user