This commit is contained in:
邹宗楠
2024-12-12 16:01:32 +08:00
parent f657e2adb8
commit edbf90bec0
2 changed files with 4 additions and 1 deletions

View File

@@ -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 != "" {

View File

@@ -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
})