diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index a91974d9d..ee0253a9b 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -1741,7 +1741,7 @@ func UpdateStoresSkus(ctx *jxcontext.Context, causeFlag int, storeIDs []int, sku isAsync = asyncStoreSkuOpFilter(ctx, isAsync) num = int64(len(skuIDs)) if num > 0 { - hint, err = CurVendorSync.SyncStoresSkus(ctx, nil, causeFlag, db, nil, storeIDs, skuIDs, false, isAsync, isContinueWhenError) + hint, err = CurVendorSync.SyncStoresSkus(ctx, nil, causeFlag, db, nil, storeIDs, skuIDs, true, isAsync, isContinueWhenError) } if num == 0 || !isAsync || hint == "" { hint = utils.Int64ToStr(num) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index aa32c4933..015ddc3f3 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -536,7 +536,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs) } - globals.SugarLogger.Debugf("----------skus :=%v, %s", isFull, utils.Format4Output(skus, false)) if err != nil || len(skus) == 0 { return err } @@ -755,15 +754,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } } - if storeID == 20002 { - globals.SugarLogger.Debugf("---------createList := %s", utils.Format4Output(createList, false)) - globals.SugarLogger.Debugf("---------updateList := %s", utils.Format4Output(updateList, false)) - globals.SugarLogger.Debugf("---------deleteList := %s", utils.Format4Output(deleteList, false)) - globals.SugarLogger.Debugf("---------stockList := %s", utils.Format4Output(stockList, false)) - globals.SugarLogger.Debugf("---------onlineList := %s", utils.Format4Output(onlineList, false)) - globals.SugarLogger.Debugf("---------priceList := %s", utils.Format4Output(priceList, false)) - globals.SugarLogger.Debugf("---------offlineList := %s", utils.Format4Output(offlineList, false)) - } task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { diff --git a/business/model/dao/store_sku.go b/business/model/dao/store_sku.go index b9c20472b..8f8504629 100644 --- a/business/model/dao/store_sku.go +++ b/business/model/dao/store_sku.go @@ -699,8 +699,6 @@ func GetStoreSkus2(db *DaoDB, vendorID, storeID int, skuIDs []int, mustDirty boo } sql = fmt.Sprintf(sql, fmtParams...) sql += " ORDER BY t1.price" - globals.SugarLogger.Debugf("------------------sql := %s", sql) - globals.SugarLogger.Debugf("------------------sql := %s", utils.Format4Output(sqlParams, false)) if err = GetRows(db, &skus, sql, sqlParams...); err != nil { return nil, err }