- GetStoresOrderSaleInfo添加售后单信息

This commit is contained in:
gazebo
2019-08-16 11:08:09 +08:00
parent b36f8b3ae1
commit 14e3594455
6 changed files with 62 additions and 27 deletions

View File

@@ -479,6 +479,7 @@ func RefreshOrderSkuRelated(order *model.GoodsOrder) *model.GoodsOrder {
order.GoodsCount = 0
order.SalePrice = 0
order.VendorPrice = 0
order.ShopPrice = 0
order.Weight = 0
for _, sku := range order.Skus {
if sku.SkuID > math.MaxInt32 {
@@ -489,6 +490,7 @@ func RefreshOrderSkuRelated(order *model.GoodsOrder) *model.GoodsOrder {
order.GoodsCount += sku.Count
order.SalePrice += sku.SalePrice * int64(sku.Count)
order.VendorPrice += sku.VendorPrice * int64(sku.Count)
order.ShopPrice += sku.ShopPrice * int64(sku.Count)
order.Weight += sku.Weight * sku.Count
}
return order