diff --git a/business/jxstore/cms/permission.go b/business/jxstore/cms/permission.go index ffac9d537..7892d6475 100644 --- a/business/jxstore/cms/permission.go +++ b/business/jxstore/cms/permission.go @@ -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, "") } }