This commit is contained in:
邹宗楠
2024-12-27 22:49:14 +08:00
parent 9f4d875b5e
commit 45ed207137
2 changed files with 4 additions and 2 deletions

View File

@@ -397,8 +397,6 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b
sqlParams = append(sqlParams, pageSize, offset)
txDB, _ := dao.Begin(db)
defer dao.Commit(db, txDB)
globals.SugarLogger.Debugf("---------------------------sql := %s", sql)
globals.SugarLogger.Debugf("---------------------------sqlParams := %s", utils.Format4Output(sqlParams, false))
if err = dao.GetRowsTx(txDB, &SkuNames, sql, sqlParams...); err == nil {
skuNamesInfo = &dao.StoreSkuNamesInfo2{
TotalCount: dao.GetLastTotalRowCount2(db, txDB),
@@ -478,6 +476,7 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b
// }
//}
}
globals.SugarLogger.Debugf("-------skuNamesInfo := %s", utils.Format4Output(skuNamesInfo, false))
return skuNamesInfo, err
}

View File

@@ -3,8 +3,10 @@ package controllers
import (
"errors"
"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"
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
"git.rosy.net.cn/jx-callback/business/jxutils"
@@ -1028,6 +1030,7 @@ func (c *StoreSkuController) GetVendorStoreSkus() {
func (c *StoreSkuController) GetStoresSkusForStore() {
c.callGetStoresSkusForStore(func(params *tStoreSkuGetStoresSkusForStoreParams) (retVal interface{}, errCode string, err error) {
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)
globals.SugarLogger.Debugf("-------retVal := %s", utils.Format4Output(retVal, false))
return retVal, "", err
})
}