获取营业额测试

This commit is contained in:
苏尹岚
2020-03-20 09:01:07 +08:00
parent 20f4cac2c1
commit 7a6ee4e396
2 changed files with 2 additions and 2 deletions

View File

@@ -670,6 +670,7 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID
saleInfo.VendorPrice += v.VendorPrice * int64(v.Count)
saleInfo.SalePrice += v.SalePrice * int64(v.Count)
// saleInfo.EarningPrice += v.EarningPrice * int64(v.Count)
globals.SugarLogger.Debugf("GetStoresOrderSaleInfoNew", utils.Format4Output(v, false))
saleInfo.EarningPrice = v.NewEarningPrice
universalOrderID := jxutils.ComposeUniversalOrderID(v.VendorOrderID, v.VendorID)
@@ -747,7 +748,6 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID
saleInfo.SalePrice += v.SalePrice
// saleInfo.EarningPrice += v.EarningPrice
saleInfo.Count++
saleInfo.EarningPrice = v.NewEarningPrice
}
for _, v := range saleInfoMap {
saleInfoList = append(saleInfoList, v)