This commit is contained in:
gazebo
2019-09-10 18:09:08 +08:00
parent 7f05b771f4
commit 690b4c2e69
2 changed files with 4 additions and 0 deletions

View File

@@ -500,6 +500,8 @@ func RefreshOrderSkuRelated(order *model.GoodsOrder) *model.GoodsOrder {
sku.SkuID = 0
}
sku.OrderCreatedAt = order.OrderCreatedAt
sku.VendorID = order.VendorID
sku.VendorOrderID = order.VendorOrderID
order.SkuCount++
order.GoodsCount += sku.Count
order.SalePrice += sku.SalePrice * int64(sku.Count)