Commit 5cfd7b0c by 王悦

fix

parent 532c50c9
...@@ -421,12 +421,14 @@ class TrademarkCtl extends CtlBase { ...@@ -421,12 +421,14 @@ class TrademarkCtl extends CtlBase {
} }
}) })
let tradedb = p.actionBody.resultInfo.data.tm; let tradedb = p.actionBody.resultInfo.data.tm;
tradedb.map(db => { for (const db of tradedb) {
this.service.dao.model.update({ await this.service.dao.model.update({
trademark_id: db.id, trademark_id: db.id,
tm_code: db.code tm_code: db.code
}, {where: {tm_code: db.code}}).catch(e=>{}); }, {where: {tm_code: db.code}}).catch(e => {
console.log(e)
}); });
}
return { return {
status: 1, status: 1,
msg: "ok" msg: "ok"
......
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