Commit 963197f7 by 王昆

gsb

parent 76001e21
......@@ -5,6 +5,7 @@ module.exports = (db, DataTypes) => {
return db.define("saasorder", {
saas_id: DataTypes.STRING,
merchant_id: DataTypes.STRING,
channel_id: DataTypes.STRING,
product_id: DataTypes.STRING,
deliver_order_id: DataTypes.STRING,
merchant_app_user_id: DataTypes.STRING,
......
......@@ -6,6 +6,7 @@ module.exports = function (db, DataTypes) {
return db.define('saasorderbusinessmen', {
saas_id: {type: DataTypes.STRING, field: 'saas_id', allowNull: true, defaultValue:'',comment:'saas_id' },
merchant_id: {type: DataTypes.STRING, field: 'merchant_id', allowNull: true, defaultValue:'',comment:'商户id' },
channel_id: {type: DataTypes.STRING, field: 'channel_id', allowNull: true, defaultValue:'',comment:'渠道id' },
product_id: {type: DataTypes.INTEGER, field: 'product_id', allowNull: true, defaultValue:'',comment:'产品id' },
saas_order_id: {type: DataTypes.STRING, field: 'saas_order_id', allowNull: true, defaultValue:'',comment:'saas_order id' },
company_id: {type: DataTypes.STRING, field: 'company_id', allowNull: true, defaultValue:'',comment:'服务个体户企业id' },
......@@ -74,7 +75,7 @@ module.exports = function (db, DataTypes) {
// define the table's name
tableName: 'saas_order_businessmen',
validate: {
},
indexes: [
// Create a unique index on email
......
......@@ -284,6 +284,7 @@ class SaasOrderService extends ServiceBase {
saasorderbusinessmen.saas_id = order.saas_id;
saasorderbusinessmen.merchant_id = order.merchant_id;
saasorderbusinessmen.product_id = order.product_id;
saasorderbusinessmen.channel_id = order.channel_id;
saasorderbusinessmen.saas_order_id = order.saas_order_id;
saasorderbusinessmen.merchant_app_user_id = order.merchant_app_user_id || "";
await this.saasorderbusinessmenDao.create(saasorderbusinessmen);
......
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