Browse Source

加交易id

liuyu 5 years ago
parent
commit
6204d134f3
2 changed files with 4 additions and 0 deletions
  1. 3 0
      app/controller/.productpact.js
  2. 1 0
      app/model/productpact.js

+ 3 - 0
app/controller/.productpact.js

@@ -9,6 +9,7 @@ module.exports = {
       'product_name',
       'market_username',
       'dockid',
+      'transaction_id',
       '!status'
     ]
   },
@@ -27,6 +28,7 @@ module.exports = {
       'product_name',
       'market_username',
       'dockid',
+      'transaction_id',
       'status'
     ]
   },
@@ -46,6 +48,7 @@ module.exports = {
         username: 'username',
         product_name: 'product_name',
         dockid: 'dockid',
+        transaction_id: 'transaction_id',
         market_username : 'market_username',
         description :'description'
       }

+ 1 - 0
app/model/productpact.js

@@ -12,6 +12,7 @@ const ProductpactSchema = {
   username: { type: String, required: false, maxLength: 500 }, // 购买人名称
   market_userid: { type: String, required: true, maxLength: 500 }, // 营销人ID
   market_username: { type: String, required: false, maxLength: 500 }, // 营销人名称
+  transaction_id: { type: String, required: true, maxLength: 500 }, // 交易主表ID
   status: { type: String, required: false, maxLength: 200, default: '0' }, // 状态(0:待审核 1:通过审核)
 };