From a217cadbe4a42afa61f1add107f061f72771b7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 12 Jul 2023 11:42:57 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 4 ---- business/jxutils/tasksch/parallel_task.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index f0b03c393..e00fd558f 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -753,8 +753,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag if len(createList) > 0 { _, err = putils.FreeBatchStoreSkuSyncInfo("创建门店商品", func(task tasksch.ITask, batchedStoreSkuList []*dao.StoreSkuSyncInfo) (result interface{}, successCount int, err error) { var failedList []*partner.StoreSkuInfoWithErr - globals.SugarLogger.Debugf("==============len createList : %d", len(createList)) - globals.SugarLogger.Debugf("==============len batchedStoreSkuList : %d", len(batchedStoreSkuList)) if failedList, err = singleStoreHandler.CreateStoreSkus(ctx, storeID, vendorStoreID, batchedStoreSkuList); singleStoreHandler.IsErrSkuExist(err) { if skuNameList, err2 := singleStoreHandler.GetStoreSkusFullInfo(ctx, task, storeID, vendorStoreID, []*partner.StoreSkuInfo{ &partner.StoreSkuInfo{ @@ -782,8 +780,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag dao.InsertSensitiveWord(sensitiveWord, vendorID, ctx.GetUserName()) } } - globals.SugarLogger.Debugf("batchedStoreSkuList := %s", utils.Format4Output(batchedStoreSkuList, false)) - globals.SugarLogger.Debugf("failedList := %s", utils.Format4Output(failedList, false)) successList := putils.UnselectStoreSkuSyncListByVendorSkuIDs(batchedStoreSkuList, GetVendorSkuIDList(failedList)) if len(successList) > 0 { _, err := updateStoreSku(dao.GetDB(), vendorID, successList, model.SyncFlagNewMask) diff --git a/business/jxutils/tasksch/parallel_task.go b/business/jxutils/tasksch/parallel_task.go index 151c57017..afe123059 100644 --- a/business/jxutils/tasksch/parallel_task.go +++ b/business/jxutils/tasksch/parallel_task.go @@ -21,7 +21,7 @@ type ParallelConfig struct { // ParentTask ITask // IsAsync bool ParallelCount int - BatchSize int + BatchSize int // 最大传入数据量 IsContinueWhenError bool }