diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 27293c5a4..18ed91e7b 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -484,7 +484,11 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } now := jxutils.OperationTime2HourMinuteFormat(time.Now()) var failedList []*partner.StoreSkuInfoWithErr + var skuList []int for _, sku := range skus { + if vendorID == 14 && storeID == 668594 { + skuList = append(skuList, sku.SkuID) + } if !useVendorPriceDirectly && !isSkuLockTimeValid(sku) { sku.VendorPrice = 0 } @@ -621,6 +625,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } return skuList } + if vendorID == 14 && storeID == 668594 { + globals.SugarLogger.Debugf("==========sku %s", utils.Format4Output(skuList, false)) + } isContinueWhenError2 := true //如果是银豹平台,则要按照商品skuname维度同步 diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index 1df4ca69e..c803fb76f 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -690,8 +690,11 @@ func GetStoreSkus2(db *DaoDB, vendorID, storeID int, skuIDs []int, mustDirty boo if err = GetRows(db, &skus, sql, sqlParams...); err != nil { return nil, err } - globals.SugarLogger.Debugf("============sql := %s", sql) - globals.SugarLogger.Debugf("============param := %s", utils.Format4Output(sqlParams, false)) + if vendorID == 14 && storeID == 668594 { + globals.SugarLogger.Debugf("============sql := %s", sql) + globals.SugarLogger.Debugf("============param := %s", utils.Format4Output(sqlParams, false)) + + } return skus, err }