Commit fa13d127 by 王悦

fix

parent e1ef6fef
...@@ -675,12 +675,15 @@ class TrademarktransactionService extends ServiceBase { ...@@ -675,12 +675,15 @@ class TrademarktransactionService extends ServiceBase {
return system.getResultFail(-111, "修改状态错误"); return system.getResultFail(-111, "修改状态错误");
} }
if (ids.length>0) if (ids.length>0)
this.updateAli(ids,status) this.updateAli(ids,downids,status)
if (downids.length>0)
this.updateAli(ids,"FAIL_END")
return system.getResultSuccess(); return system.getResultSuccess();
} }
async updateAli(ids, status) { async updateAli(ids,downids, status) {
if (downids.length>0)
await this.updateAlistatus(downids,"FAIL_END")
this.updateAlistatus(ids,status)
}
async updateAlistatus(ids, status) {
let action = status === "ON_SALE" ? "UploadTrademarkOnSale" : "UpdateTrademarkOnsale" let action = status === "ON_SALE" ? "UploadTrademarkOnSale" : "UpdateTrademarkOnsale"
let res = await this.dao.model.findAll({where: {id: {$in: ids}}}) let res = await this.dao.model.findAll({where: {id: {$in: ids}}})
for (const item of res) { for (const item of res) {
......
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