From bb216f226f3fb746ef51b37aa732371583bbee42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 26 May 2020 15:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=97=A8=E5=BA=97=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync_store_sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index c25fec24f..69e34be88 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -393,7 +393,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag skus, err = dao.GetFullStoreSkus(db, vendorID, storeID) } else { skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs) - fmt.Println("testGetStoreSkus", utils.Format4Output(skus, false)) } if err != nil || len(skus) == 0 { return err @@ -522,6 +521,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag if bareSku == nil { bareSku = storeSkuSyncInfo2Bare(sku) } + if vendorID == model.VendorIDJDShop && storeID == 102023 { + fmt.Println("test102023", utils.Format4Output(sku, false)) + } if sku.MergedStatus == model.SkuStatusNormal { onlineList = append(onlineList, bareSku) stockList = append(stockList, bareSku) @@ -606,8 +608,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag updateList = updateList[:] updateList = rList2 } - fmt.Println("testonlineList", utils.Format4Output(onlineList, false)) - fmt.Println("testofflineList", 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) {