Commit 264d7f2e by 庄冰

policy push

parent cd5e837a
......@@ -312,6 +312,14 @@ class PolicyneedService extends ServiceBase {
if(rtn && rtn.code=="200"){
await this.dao.update({id:pn.id,isPushAlready:true});//标记需求数据,已推送
}
var logObj = {
op: "app/base/service/impl/dbpolicy/policyneedSve.js",
content: JSON.stringify(rtn),
resultInfo: JSON.stringify(rtn),
opTitle: "推送政策需求数据至蜂擎系统--成功",
};
await this.oplogDao.create(logObj);
return system.getResultSuccess();
} catch (e) {
var logObj = {
op: "app/base/service/impl/dbpolicy/policyneedSve.js",
......@@ -321,9 +329,8 @@ class PolicyneedService extends ServiceBase {
};
await this.oplogDao.create(logObj);
}
}
return system.getResultSuccess();
return system.getResult(null, "推送失败");
}
}
......
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