This commit is contained in:
gazebo
2019-08-05 12:52:23 +08:00
parent f9b578f0ae
commit b0b4e67e21

View File

@@ -303,13 +303,13 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, isFull bo
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 model.IsSyncStatusUpdate(sku.StoreSkuSyncStatus) && singleStoreHandler == nil { // if model.IsSyncStatusUpdate(sku.StoreSkuSyncStatus) && singleStoreHandler == nil {
if bareSku == nil { // if bareSku == nil {
bareSku = storeSkuSyncInfo2Bare(sku) // bareSku = storeSkuSyncInfo2Bare(sku)
} // }
stockList = append(stockList, bareSku) // stockList = append(stockList, bareSku)
isAddedStock = true // isAddedStock = true
} // }
if model.IsSyncStatusSale(sku.StoreSkuSyncStatus) { if model.IsSyncStatusSale(sku.StoreSkuSyncStatus) {
if bareSku == nil { if bareSku == nil {
bareSku = storeSkuSyncInfo2Bare(sku) bareSku = storeSkuSyncInfo2Bare(sku)