Commit 5ac5ac93 by 王悦

add type reason

parent 9e391011
......@@ -111,6 +111,8 @@ class TrademarkCtl extends CtlBase {
user_id: p.userid,
company_id: p.company_id,
trademark_id: db.id,
type:p.data.type,
reason:p.data.reason,
tm_code: db.code
}));
rtn = await this.service.bulkCreate(tradedb);
......@@ -146,6 +148,8 @@ class TrademarkCtl extends CtlBase {
user_id: p.userid,
company_id: p.company_id,
// trademark_id: db.id,
type:p.data.type,
reason:p.data.reason,
tm_code: db.code,
upload_id: uploadid
}));
......@@ -183,6 +187,8 @@ class TrademarkCtl extends CtlBase {
business_quoted_price: item[2],
contacts: item[3],
mobile: item[4],
type: item[5],
reason: item[6],
})
}
});
......
......@@ -9,6 +9,8 @@ module.exports = (db, DataTypes) => {
trademark_id: DataTypes.INTEGER, //标源id
tm_code: DataTypes.STRING, //商标申请号
opath: DataTypes.STRING, //用户路径
type: DataTypes.STRING, //转让类型
reason: DataTypes.STRING, //转让原因
}, {
paranoid: true,//假的删除
underscored: true,
......
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