更新门店库存测试
This commit is contained in:
@@ -496,6 +496,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
parentTask.AddFailedList(failedList)
|
parentTask.AddFailedList(failedList)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if vendorID == model.VendorIDJDShop && storeID == 102023 {
|
||||||
|
fmt.Println("test102023", utils.Format4Output(sku, false))
|
||||||
|
}
|
||||||
isAdded2Update := false
|
isAdded2Update := false
|
||||||
// 修改商品信息时不改价(以免活动引起的失败),而用单独的改价来改
|
// 修改商品信息时不改价(以免活动引起的失败),而用单独的改价来改
|
||||||
if (model.IsSyncStatusUpdate(sku.SkuSyncStatus) || (model.IsSyncStatusSeq(sku.SkuSyncStatus) && reorderHandler == nil)) && singleStoreHandler != nil {
|
if (model.IsSyncStatusUpdate(sku.SkuSyncStatus) || (model.IsSyncStatusSeq(sku.SkuSyncStatus) && reorderHandler == nil)) && singleStoreHandler != nil {
|
||||||
@@ -510,6 +513,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
bareSku = storeSkuSyncInfo2Bare(calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage)))
|
bareSku = storeSkuSyncInfo2Bare(calVendorPrice4StoreSku(sku, storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage)))
|
||||||
priceList = append(priceList, bareSku)
|
priceList = append(priceList, bareSku)
|
||||||
}
|
}
|
||||||
|
if vendorID == model.VendorIDJDShop && storeID == 102023 {
|
||||||
|
fmt.Println("test102023", utils.Format4Output(sku, false))
|
||||||
|
}
|
||||||
if !isAdded2Update {
|
if !isAdded2Update {
|
||||||
if model.IsSyncStatusUpdate(sku.SkuSyncStatus) && singleStoreHandler == nil { // 正常就不应该进到这里
|
if model.IsSyncStatusUpdate(sku.SkuSyncStatus) && singleStoreHandler == nil { // 正常就不应该进到这里
|
||||||
if bareSku == nil {
|
if bareSku == nil {
|
||||||
@@ -517,6 +523,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
}
|
}
|
||||||
updateItems = append(updateItems, sku2Update(vendorID, sku, model.SyncFlagStockMask))
|
updateItems = append(updateItems, sku2Update(vendorID, sku, model.SyncFlagStockMask))
|
||||||
}
|
}
|
||||||
|
if vendorID == model.VendorIDJDShop && storeID == 102023 {
|
||||||
|
fmt.Println("test102023", utils.Format4Output(sku, false))
|
||||||
|
}
|
||||||
if model.IsSyncStatusSale(sku.SkuSyncStatus) {
|
if model.IsSyncStatusSale(sku.SkuSyncStatus) {
|
||||||
if bareSku == nil {
|
if bareSku == nil {
|
||||||
bareSku = storeSkuSyncInfo2Bare(sku)
|
bareSku = storeSkuSyncInfo2Bare(sku)
|
||||||
|
|||||||
Reference in New Issue
Block a user