This commit is contained in:
邹宗楠
2022-03-30 10:39:05 +08:00
parent 523fffef55
commit 907b265ba7
2 changed files with 2 additions and 1 deletions

View File

@@ -736,7 +736,6 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
func GetStoresSkus(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []string, isFocus, isHighPrice bool, priceType int, keyword string, isBySku, isAct bool, params map[string]interface{}, offset, pageSize int) (skuNamesInfo *dao.StoreSkuNamesInfo, err error) {
//权限 管理员/未登录人员不进入,商城不进入
fmt.Println("111111111111111111", permission.IsRoled(ctx))
if permission.IsRoled(ctx) {
if storeIDsMap, err := permission.GetUserStoresResultMap(ctx.GetUserID()); err == nil {
var storeIDs2 []int

View File

@@ -100,6 +100,8 @@ func (c *StoreSkuController) GetStoresSkus() {
var storeIDs, skuIDs []int
var upcs []string
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.SkuIDs, &skuIDs, params.Upcs, &upcs); err == nil {
fmt.Println("params.StoreIDs:=", params.StoreIDs)
fmt.Println("storeIDs:=", storeIDs)
retVal, err = cms.GetStoresSkus(params.Ctx, storeIDs, skuIDs, upcs, params.IsFocus, params.IsHighPrice, params.PriceType, params.Keyword, params.IsBySku, params.IsAct, params.MapData, params.Offset, params.PageSize)
}
fmt.Println("==================", retVal)