Commit 121f7e85 by linboxuan

ucommune-back operate api

parent 0c46ade8
...@@ -134,7 +134,7 @@ class OrderInfoService extends ServiceBase { ...@@ -134,7 +134,7 @@ class OrderInfoService extends ServiceBase {
var needList = await this.needInfoDao.customQuery(needListSql,paramWhere); var needList = await this.needInfoDao.customQuery(needListSql,paramWhere);
// 根据月份分组支付订单 // 根据月份分组支付订单
var orderListSql = "SELECT DATE_FORMAT(created_at, '%Y-%m') AS month,count(*) as count " var orderListSql = "SELECT DATE_FORMAT(created_at, '%Y-%m') AS month,count(*) as count "
+ " FROM c_order_info where orderStatus=2 and uapp_id=:uappId and created_at >=:startTime and created_at<=:entTime GROUP BY month" + " FROM c_order_info where orderStatus != 1 and uapp_id=:uappId and created_at >=:startTime and created_at<=:entTime GROUP BY month"
var orderList = await this.customQuery(orderListSql,paramWhere); var orderList = await this.customQuery(orderListSql,paramWhere);
// 处理数据 // 处理数据
for(var i =0;i < monthList.length;i++) { for(var i =0;i < monthList.length;i++) {
......
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