- use DeletedAt to judge whether store sku is focused.
This commit is contained in:
@@ -58,7 +58,7 @@ func (p *PurchaseHandler) SyncStoreSku(storeID int, skuIDs []int, isForce bool,
|
||||
OutSkuId: utils.Int2Str(storeSku.SkuID),
|
||||
StockQty: 9999,
|
||||
}
|
||||
if storeSku.Status == model.StoreSkuBindStatusDeleted {
|
||||
if storeSku.DeletedAt != utils.DefaultTimeValue {
|
||||
stock.StockQty = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user