Commit b44ccfd9 by 王悦

fix

parent a42307c5
......@@ -706,6 +706,7 @@ class TrademarktransactionService extends ServiceBase {
}
async forceUpdate(pobj, status) {
let item = await this.dao.findOne({id:pobj.actionBody.id})
let price = item.platform_quoted_price
item.platform_quoted_price = pobj.actionBody.price
let obj = buildobj(item,status)
if (obj) {
......@@ -717,6 +718,7 @@ class TrademarktransactionService extends ServiceBase {
item.fail_reason = err
item.publish_status = "fail"
item.publish_status_name = "发布失败"
item.platform_quoted_price = price
item.save()
return system.getResultError(err)
}else {
......
......@@ -36,13 +36,14 @@ exports.reqbyget = async (obj) => {
exports.buildobj=(sqlobj,status)=>{
try {
let nclcode = sqlobj.ncl_one_code
if (!sqlobj.tm_ncl_third || !sqlobj.tm_group)
return null
if (sqlobj.ncl_one_code.length===1)
sqlobj.ncl_one_code = "0"+sqlobj.ncl_one_code
nclcode = "0"+nclcode
return {
"beginTime": 1574388139000,
"classificationCode": sqlobj.ncl_one_code,
"classificationCode":nclcode,
"description": JSON.parse(sqlobj.tm_ncl_third).join(","),
"endTime": 1668089537981,
"label": "商标标签",
......
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