lrf 2 years ago
parent
commit
cccb1bc68e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/service/trade/orderDetail.js
  2. 1 1
      app/service/user/point.js

+ 1 - 1
app/service/trade/orderDetail.js

@@ -36,7 +36,7 @@ class OrderDetailService extends CrudService {
       const total_detail = this.getTotalDetail(goodsList);
       noTimes++;
       const obj = { ...orderDetailData, shop, goods: goodsList, no: detailNo, total_detail };
-      tran.insert(obj);
+      tran.insert('OrderDetail', obj);
       // arr.push(obj);
     }
     // await this.model.insertMany(arr);

+ 1 - 1
app/service/user/point.js

@@ -41,7 +41,7 @@ class PointService extends CrudService {
       time: moment().format('YYYY-MM-DD HH:mm:ss'),
       source: '0',
     };
-    tran.insert(point, pointData);
+    tran.insert('Point', pointData);
   }
 }