订单修改库存
This commit is contained in:
@@ -333,6 +333,10 @@ func modifyOrderSkusStock(db *dao.DaoDB, order *model.GoodsOrder, isAdd bool) (e
|
||||
continue
|
||||
}
|
||||
storeSku, stock := storeSkus[0], 0
|
||||
if storeSku.Stock == 0 {
|
||||
globals.SugarLogger.Warnf("此订单商品库存为0,%v,%v", order.VendorOrderID, sku.SkuID)
|
||||
continue
|
||||
}
|
||||
if isAdd {
|
||||
stock = storeSku.Stock + 1
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user