1
This commit is contained in:
@@ -395,7 +395,11 @@ 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("store_sku 检查:sql:%s sqlParams:%s", sql, sqlParams)
|
||||
|
||||
if err = dao.GetRowsTx(txDB, &SkuNames, sql, sqlParams...); err == nil {
|
||||
globals.SugarLogger.Debugf(" 检查参数:SkuNames:%s", utils.Format4Output(SkuNames, false))
|
||||
skuNamesInfo = &dao.StoreSkuNamesInfo2{
|
||||
TotalCount: dao.GetLastTotalRowCount2(db, txDB),
|
||||
}
|
||||
@@ -437,6 +441,7 @@ func GetStoresSkusForStore(ctx *jxcontext.Context, storeID int, isFocus, isAct b
|
||||
sqlParams2 = append(sqlParams2, status)
|
||||
}
|
||||
if err = dao.GetRows(db, &skus, sql2, sqlParams2); err == nil {
|
||||
globals.SugarLogger.Debugf(" 检查参数:skus:%s", utils.Format4Output(skus, false))
|
||||
v.Skus = skus
|
||||
}
|
||||
return retVal, err
|
||||
|
||||
Reference in New Issue
Block a user