Commit 48037cc9 by 王勇飞

add faild company_name

parent c5ef7b49
...@@ -15,7 +15,7 @@ class AliHandler { ...@@ -15,7 +15,7 @@ class AliHandler {
* @param {*} datajson * @param {*} datajson
*/ */
//新商机处理 //新商机处理
async addChance (datajson) { async addChance(datajson) {
console.log("put in queue [addChance]", datajson); console.log("put in queue [addChance]", datajson);
try { try {
var cachestr = sha235(JSON.stringify(datajson)); var cachestr = sha235(JSON.stringify(datajson));
...@@ -70,7 +70,7 @@ class AliHandler { ...@@ -70,7 +70,7 @@ class AliHandler {
} }
} }
async updateChanceStatus (datajson) { async updateChanceStatus(datajson) {
console.log("put in queue [updateChanceStatus]" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); console.log("put in queue [updateChanceStatus]" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
try { try {
var cachestr = sha235(JSON.stringify(datajson)); var cachestr = sha235(JSON.stringify(datajson));
...@@ -114,7 +114,7 @@ class AliHandler { ...@@ -114,7 +114,7 @@ class AliHandler {
//退回商机处理 //退回商机处理
async needClose (datajson) { async needClose(datajson) {
console.log("put in queue" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); console.log("put in queue" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
try { try {
var cachestr = sha235(JSON.stringify(datajson)); var cachestr = sha235(JSON.stringify(datajson));
...@@ -193,7 +193,7 @@ class AliHandler { ...@@ -193,7 +193,7 @@ class AliHandler {
} }
//交付单处理 //交付单处理
async pushOrderDelivery (datajson, channelobj) { async pushOrderDelivery(datajson, channelobj) {
console.log("put in queue-----------------------------------------------------------------------------------------------------", datajson); console.log("put in queue-----------------------------------------------------------------------------------------------------", datajson);
try { try {
console.log("交付单数据:" + JSON.stringify(datajson)); console.log("交付单数据:" + JSON.stringify(datajson));
...@@ -298,7 +298,7 @@ class AliHandler { ...@@ -298,7 +298,7 @@ class AliHandler {
} }
//客户状态处理 //客户状态处理
async deliveryNotify (datajson) { async deliveryNotify(datajson) {
try { try {
var cachestr = sha235(JSON.stringify(datajson)); var cachestr = sha235(JSON.stringify(datajson));
var cacheInfo = await this.cacheManager["AliCache"].getCache(cachestr); var cacheInfo = await this.cacheManager["AliCache"].getCache(cachestr);
...@@ -384,7 +384,7 @@ class AliHandler { ...@@ -384,7 +384,7 @@ class AliHandler {
} }
} }
async actionBodyHandler (actionBody) { async actionBodyHandler(actionBody) {
let data = actionBody; let data = actionBody;
let obj = {}; let obj = {};
obj.baseInfo = {}; obj.baseInfo = {};
...@@ -402,9 +402,12 @@ class AliHandler { ...@@ -402,9 +402,12 @@ class AliHandler {
obj.servicerName = data.servicer.name; obj.servicerName = data.servicer.name;
} }
} }
if (data.channelNeedNo) { if (data.channelNeedNo) {//需求编号
obj.businessMode = data.channelNeedNo; obj.businessMode = data.channelNeedNo;
} }
if (data.channelSolutionNo) {//方案编号
obj.schemeNumber = data.channelSolutionNo;
}
if (data.needsolution.solution.Area) {//服务地区编码和服务地区 if (data.needsolution.solution.Area) {//服务地区编码和服务地区
obj.serviceCode = data.needsolution.solution.Area; obj.serviceCode = data.needsolution.solution.Area;
obj.serviceName = data.needsolution.solution.Area; obj.serviceName = data.needsolution.solution.Area;
...@@ -412,6 +415,7 @@ class AliHandler { ...@@ -412,6 +415,7 @@ class AliHandler {
} }
if (data.needsolution.solution.CompanyName) {//公司名称 if (data.needsolution.solution.CompanyName) {//公司名称
obj.baseInfo.companyName = data.needsolution.solution.CompanyName; obj.baseInfo.companyName = data.needsolution.solution.CompanyName;
obj.companyName = data.needsolution.solution.CompanyName;
} }
if (data.needsolution.solution.CompanyAddress) {//公司地址 if (data.needsolution.solution.CompanyAddress) {//公司地址
obj.baseInfo.companyAddress = data.needsolution.solution.CompanyAddress; obj.baseInfo.companyAddress = data.needsolution.solution.CompanyAddress;
......
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