lrf 2 年之前
父節點
當前提交
ee30c9d005
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/statistics/bill.js

+ 1 - 1
app/service/statistics/bill.js

@@ -54,7 +54,7 @@ class BillService extends CrudService {
     const { shop, start, end } = query;
     const pipline = [];
     // 商店过滤&时间过滤
-    const q = { $match: { $and: [{ apply_time: { $gte: start } }, { apply_time: { $lte: end } }] } }; // 退款,退货的完成状态, status:{$in:['-1','-2']}, out_bill:{$ne:'0'}
+    const q = { $match: { $and: [{ apply_time: { $gte: start } }, { apply_time: { $lte: end } }], status: { $in: [ '-1', '-2' ] } } }; // 退款,退货的完成状态, status:{$in:['-1','-2']}, out_bill:{$ne:'0'}
     if (shop) q.$match.shop = shop;
     pipline.push(q);
     // 组织数据