Commit b72d1768 by 蒋勇

baidu

parent 2d9532c4
...@@ -164,21 +164,23 @@ class BaiduHandler { ...@@ -164,21 +164,23 @@ class BaiduHandler {
//如果订单状态为已支付 //如果订单状态为已支付
if (datajson.actionBody.needsolution.status == "PAID") { if (datajson.actionBody.needsolution.status == "PAID") {
//查询业务员信息并填充到obj //查询业务员信息并填充到obj
if (datajson.actionBody.needsolution.salesmanInfo && datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId) { if(datajson.actionBody.needsolution.salesmanInfo){
//去数据库查询该业务员信息 console.log(datajson.actionBody.needsolution.salesmanInfo,"datajson.actionBody.needsolution.salesmanInfo")
obj.salesmanOpcode = `root10/bizgroup01/g1members/${datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId}`; if (datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId) {
try { //去数据库查询该业务员信息
let resInfo = await this.userService.getSalesmanInfo(datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId); obj.salesmanOpcode = `root10/bizgroup01/g1members/${datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId}`;
if (resInfo) { try {
obj.salesmanOpcode = resInfo.opath; let resInfo = await this.userService.getSalesmanInfo(datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId);
obj.salesmanName = resInfo.nickName; if (resInfo) {
obj.servicerCode = resInfo.company_id; obj.salesmanOpcode = resInfo.opath;
obj.salesmanName = resInfo.nickName;
obj.servicerCode = resInfo.company_id;
}
} catch (error) {
console.log("salesmanChannelId: " + datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId + "获取业务员opcode失败:" + error)
} }
} catch (error) {
console.log("salesmanChannelId: " + datajson.actionBody.needsolution.salesmanInfo.salesmanChannelId + "获取业务员opcode失败:" + error)
} }
} }
} }
//获取交付商id //获取交付商id
......
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