1
This commit is contained in:
@@ -503,9 +503,12 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
if sku.Status != model.SkuStatusNormal {
|
||||
sku.MergedStatus = model.SkuStatusDontSale
|
||||
}
|
||||
globals.SugarLogger.Debugf("==========sku.MergedStatus := %d", sku.MergedStatus)
|
||||
|
||||
var bareSku *partner.StoreSkuInfo
|
||||
isNeedReorder := false
|
||||
if isStoreSkuSyncNeedDelete(sku) {
|
||||
globals.SugarLogger.Debugf("==========isStoreSkuSyncNeedDelete := %d", 222)
|
||||
if !dao.IsVendorThingIDEmpty(sku.VendorSkuID) {
|
||||
bareSku = storeSkuSyncInfo2Bare(sku)
|
||||
if singleStoreHandler == nil {
|
||||
@@ -518,6 +521,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
updateItems = append(updateItems, sku2Update(vendorID, sku, model.SyncFlagDeletedMask))
|
||||
}
|
||||
} else if model.IsSyncStatusNew(sku.SkuSyncStatus) {
|
||||
globals.SugarLogger.Debugf("==========IsSyncStatusNew := %d", 333)
|
||||
calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage))
|
||||
if singleStoreHandler == nil {
|
||||
if dao.IsVendorThingIDEmpty(sku.VendorSkuID) {
|
||||
@@ -560,6 +564,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
parentTask.AddFailedList(failedList)
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("==========IsSyncStatusNew := %d", 444)
|
||||
isAdded2Update := false
|
||||
// 修改商品信息时不改价(以免活动引起的失败),而用单独的改价来改
|
||||
if (model.IsSyncStatusUpdate(sku.SkuSyncStatus) || (model.IsSyncStatusSeq(sku.SkuSyncStatus) && reorderHandler == nil)) && singleStoreHandler != nil {
|
||||
|
||||
Reference in New Issue
Block a user