1
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user