diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 25a51fb55..81f9541b7 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -384,7 +384,7 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b sql += " AND c.location_code = ?" sqlParams = append(sqlParams, locationCode2) } else if locationCode { - sql += " AND c.location_code = ''" + sql += " AND (c.location_code = '' OR c.location_code = 'EMPTY_VALUE') " } if keyword != "" { diff --git a/controllers/cms_store_sku.go b/controllers/cms_store_sku.go index 7f320143e..6c9e0d177 100644 --- a/controllers/cms_store_sku.go +++ b/controllers/cms_store_sku.go @@ -2,8 +2,10 @@ package controllers import ( "git.rosy.net.cn/baseapi/platformapi/jdapi" + "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/auth2" "git.rosy.net.cn/jx-callback/business/model" + "git.rosy.net.cn/jx-callback/globals" "errors" @@ -1028,6 +1030,7 @@ func (c *StoreSkuController) GetVendorStoreSkus() { // @router /GetStoresSkusForStore [get] func (c *StoreSkuController) GetStoresSkusForStore() { c.callGetStoresSkusForStore(func(params *tStoreSkuGetStoresSkusForStoreParams) (retVal interface{}, errCode string, err error) { + globals.SugarLogger.Debugf("daata :======%s", utils.Format4Output(params.MapData, false)) retVal, err = cms.GetStoresSkusForStore(params.Ctx, params.StoreID, params.IsFocus, params.IsAct, params.Keyword, params.CategoryID, params.Status, params.Offset, params.PageSize, params.Stock, params.LocationCode, params.LocationCode2) return retVal, "", err })