- GetStoresOrderSaleInfoNew
This commit is contained in:
@@ -775,9 +775,9 @@ func (c *OrderManager) GetOrdersFinancial(ctx *jxcontext.Context, fromDateStr, t
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *OrderManager) GetStoresOrderSaleInfo(ctx *jxcontext.Context, storeIDList []int, fromTime time.Time, toTime time.Time, statusList []int) (saleInfoList []*dao.StoresOrderSaleInfo, err error) {
|
func (c *OrderManager) GetStoresOrderSaleInfo(ctx *jxcontext.Context, storeIDList []int, fromTime time.Time, toTime time.Time, statusList []int) (saleInfoList []*dao.StoresOrderSaleInfo, err error) {
|
||||||
if globals.IsProductEnv() {
|
// if globals.IsProductEnv() {
|
||||||
return dao.GetStoresOrderSaleInfo(dao.GetDB(), storeIDList, fromTime, toTime, statusList)
|
// return dao.GetStoresOrderSaleInfo(dao.GetDB(), storeIDList, fromTime, toTime, statusList)
|
||||||
}
|
// }
|
||||||
return c.GetStoresOrderSaleInfoNew(ctx, storeIDList, fromTime, toTime, statusList)
|
return c.GetStoresOrderSaleInfoNew(ctx, storeIDList, fromTime, toTime, statusList)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -871,7 +871,7 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID
|
|||||||
order.SalePrice += orderSku.SalePrice * int64(v.Count)
|
order.SalePrice += orderSku.SalePrice * int64(v.Count)
|
||||||
order.EarningPrice += orderSku.EarningPrice * int64(v.Count)
|
order.EarningPrice += orderSku.EarningPrice * int64(v.Count)
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debug(utils.Format4Output(v, true))
|
// globals.SugarLogger.Debug(utils.Format4Output(v, true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for universalOrderID, v := range afsOrderMap {
|
for universalOrderID, v := range afsOrderMap {
|
||||||
|
|||||||
Reference in New Issue
Block a user