lrf 2 năm trước cách đây
mục cha
commit
d81f383d65
3 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 3 1
      app/controller/trade/config/.order.js
  2. 1 0
      app/service/trade/order.js
  3. 1 1
      package.json

+ 3 - 1
app/controller/trade/config/.order.js

@@ -22,9 +22,11 @@ module.exports = {
         'meta.createdAt@start': 'meta.createdAt@start',
         'meta.createdAt@end': 'meta.createdAt@end',
         customer: 'customer',
-        buy_time: 'buy_time',
+        'buy_time@start': 'buy_time@start',
+        'buy_time@end': 'buy_time@end',
         'pay_time@start': 'pay.pay_time@start',
         'pay_time@end': 'pay.pay_time@end',
+        shop:'goods.shop',
         no: 'no',
       },
       // options: {

+ 1 - 0
app/service/trade/order.js

@@ -18,6 +18,7 @@ class OrderService extends CrudService {
     this.cartModel = this.ctx.model.Trade.Cart;
     this.tran = new Transaction();
   }
+
   /**
    * 创建订单
    * 1.检测商品是否可以购买

+ 1 - 1
package.json

@@ -14,7 +14,7 @@
     "lodash": "^4.17.21",
     "moment": "^2.29.4",
     "mongoose-transactions": "^1.1.4",
-    "naf-framework-mongoose-free": "^0.0.36"
+    "naf-framework-mongoose-free": "^0.0.37"
   },
   "devDependencies": {
     "autod": "^3",