Commit 63c95965 by 王悦

fix

parent 2f3df96a
...@@ -339,8 +339,8 @@ class TrademarktransactionService extends ServiceBase { ...@@ -339,8 +339,8 @@ class TrademarktransactionService extends ServiceBase {
else{ else{
let alires = await this.queryAlistatus(objlist[i].code) let alires = await this.queryAlistatus(objlist[i].code)
if (alires.status === 1 && alires.trademarks[0].TmType === "NORMAL") { if (alires.status === 1 && alires.trademarks[0].TmType === "NORMAL") {
res = await this.dao.findOne({code: objlist[i].code, publish_status: "ON_SALE"}) res = await this.dao.findOne({code: objlist[i].code, publish_status: "uppershelf"})
await this.dao.updateByWhere(objlist[i], {code: objlist[i].code, publish_status: "ON_SALE"}) await res.update(objlist[i])
}else }else
res = await this.dao.create(objlist[i]); res = await this.dao.create(objlist[i]);
} }
......
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