Commit 93993514 by 王悦

fix

parent 36bd9355
......@@ -313,7 +313,7 @@ class TrademarktransactionService extends ServiceBase {
await this.dao.model.updateByWhere(objlist[i], {where: {id: objlist[i].id}})
else
res = await this.dao.model.create(objlist[i]);
await this.updateAlistatus([objlist[i].id||res.id])
await this.updateAlistatus([objlist[i].id||res.id],"ON_SALE")
}
var data = res
return system.getResultSuccess(data);
......@@ -454,6 +454,7 @@ class TrademarktransactionService extends ServiceBase {
"mobile",//联系电话
"name",//商标名称
"TmType",
"TradeTmDetailJson",
"ncl_one_code",
"channel_name",
"tm_applier",
......@@ -719,7 +720,7 @@ class TrademarktransactionService extends ServiceBase {
let obj = buildobj(item,status)
if (obj) {
let err = await reqbyget({
action:item.publish_status==="audit"?"UploadTrademarkOnSale":"UpdateTrademarkOnsale",
action:["audit","fail"].includes(item.publish_status)?"UploadTrademarkOnSale":"UpdateTrademarkOnsale",
reqbody: obj
})
await this.sleep()
......
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