Commit 5cfd7b0c by 王悦

fix

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