获取营业额测试
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user