From bcd8eba95e0af35f46339921e8817e4d22056026 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 20 Aug 2019 12:09:02 +0800 Subject: [PATCH] - fix bug in GetStoresOrderSaleInfoNew --- business/jxcallback/orderman/orderman_ext.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 44698456f..3c0c4203f 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -814,10 +814,10 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID } saleInfoMap[index] = saleInfo } - saleInfo.ShopPrice += v.ShopPrice - saleInfo.VendorPrice += v.VendorPrice - saleInfo.SalePrice += v.SalePrice - saleInfo.EarningPrice += v.EarningPrice + saleInfo.ShopPrice += v.ShopPrice * int64(v.Count) + saleInfo.VendorPrice += v.VendorPrice * int64(v.Count) + saleInfo.SalePrice += v.SalePrice * int64(v.Count) + saleInfo.EarningPrice += v.EarningPrice * int64(v.Count) universalOrderID := jxutils.ComposeUniversalOrderID(v.VendorOrderID, v.VendorID) if orderMap[universalOrderID] == nil {