From 7bc90281ff41249760b154cdd07a3600d6bca697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 22 Jan 2021 10:56:01 +0800 Subject: [PATCH] aa --- business/jxstore/cms/permission.go | 5 +++++ 1 file changed, 5 insertions(+) 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, "") } }