This commit is contained in:
邹宗楠
2023-07-12 11:42:57 +08:00
parent 85a22440a4
commit a217cadbe4
2 changed files with 1 additions and 5 deletions

View File

@@ -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)

View File

@@ -21,7 +21,7 @@ type ParallelConfig struct {
// ParentTask ITask
// IsAsync bool
ParallelCount int
BatchSize int
BatchSize int // 最大传入数据量
IsContinueWhenError bool
}