Commit ad32a576 by 孙亚楠

dd

parent 52f2b4ed
......@@ -223,9 +223,13 @@ class OorderdeliverService extends ServiceBase {
//当月订单的数量统计和订单总金额
var orderData = await this.dao.statOrderByTime(begin, end, this.trim(params.deliver_id)) || {};
result.orderCount = orderData[orderData.begin]["orderCount"];
result.orderPrice = system.f2y(orderData[orderData.begin]["orderPrice"]);
if(!orderData){
result.orderCount = 0;
result.orderPrice = 0;
}else{
result.orderCount = orderData[orderData.begin]?orderData[orderData.begin]["orderCount"] : 0;
result.orderPrice = orderData[orderData.begin]?system.f2y(orderData[orderData.begin]["orderPrice"]): 0;
}
result.days = days;
result.dayCounts = dayCounts;
result.priceCounts = priceCounts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment