1
This commit is contained in:
@@ -327,7 +327,9 @@ func storeSkuSyncInfo2Bare(inSku *dao.StoreSkuSyncInfo) (outSku *partner.StoreSk
|
||||
SpecQuality: inSku.SpecQuality,
|
||||
}
|
||||
if !isStoreSkuSyncNeedDelete(inSku) {
|
||||
outSku.Stock = model.MaxStoreSkuStockQty
|
||||
if inSku.Stock == 0 {
|
||||
outSku.Stock = model.MaxStoreSkuStockQty
|
||||
}
|
||||
}
|
||||
if inSku.VendorMainId != "" {
|
||||
outSku.VendorMainId = inSku.VendorMainId
|
||||
@@ -634,9 +636,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
parentTask.AddFailedList(failedList)
|
||||
}
|
||||
} else {
|
||||
if storeID == 20002 {
|
||||
globals.SugarLogger.Debugf("----skus7 := %s", utils.Format4Output(skus, false))
|
||||
}
|
||||
isAdded2Update := false
|
||||
// 修改商品信息时不改价(以免活动引起的失败),而用单独的改价来改
|
||||
if (model.IsSyncStatusUpdate(sku.SkuSyncStatus) || (model.IsSyncStatusSeq(sku.SkuSyncStatus) && reorderHandler == nil)) && singleStoreHandler != nil {
|
||||
@@ -867,9 +866,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
}, ctx, task, updateList, singleStoreHandler.GetStoreSkusBatchSize(partner.FuncUpdateStoreSkus), isContinueWhenError2)
|
||||
}
|
||||
case 3:
|
||||
if storeID == 20002 {
|
||||
globals.SugarLogger.Debugf("----stockList := %s", utils.Format4Output(stockList, false))
|
||||
}
|
||||
// for k, list := range [][]*partner.StoreSkuInfo{stockList /*, onlineList*/} {
|
||||
if len(stockList) > 0 {
|
||||
_, err = putils.FreeBatchStoreSkuInfo("更新门店商品库存", func(task tasksch.ITask, batchedStoreSkuList []*partner.StoreSkuInfo) (result interface{}, successCount int, err error) {
|
||||
|
||||
Reference in New Issue
Block a user