Commit 787d842b by 兰国旗

laolanyouhua

parent ab854a31
...@@ -43,8 +43,11 @@ class RegCenterOrderService{ ...@@ -43,8 +43,11 @@ class RegCenterOrderService{
return system.getResult(null, "方案数据为空,30211"); return system.getResult(null, "方案数据为空,30211");
} }
var needinfo = await this.needinfoDao.findOne({ channelNeedNo: needsolution.channelNeedNo }); var needinfo = await this.needinfoDao.findOne({ channelNeedNo: needsolution.channelNeedNo });
if (!needinfo || !needinfo.channelNeedNo) { if (!needinfo) {
return system.getResult(null, "需求数据为空,30212"); needifno = {}
needinfo['publishMobile'] = needsolution.solutionContent.customerInfo.publishMobile
needinfo['channelNeedNo'] = needsolution.channelNeedNo
needinfo['solutionContent'] = needsolution.solutionContent
} }
} }
if(pobj.actionBody.channelNeedNo){ if(pobj.actionBody.channelNeedNo){
...@@ -237,12 +240,19 @@ class RegCenterOrderService{ ...@@ -237,12 +240,19 @@ class RegCenterOrderService{
if (!item && !solutionitem) { if (!item && !solutionitem) {
return system.getResult(null, "需求或者方案不存在,30211"); return system.getResult(null, "需求或者方案不存在,30211");
} }
if (!item && solutionitem) {
item['publishMobile'] = solutionitem.solutionContent.customerInfo.publishMobile if(!item){
item = {}
item['publishMobile']=solutionitem.solutionContent.customerInfo.publishMobile
item['solutionProvince'] = solutionitem.solutionContent.solution.area;
item['solutionContent'] = solutionitem.solutionContent
item['channelSolutionNo'] = solutionitem.channelSolutionNo
}else{
item.solutionProvince = solutionitem.solutionContent.solution.area;
item.solutionContent = solutionitem.solutionContent
item.channelSolutionNo = solutionitem.channelSolutionNo
} }
item.solutionProvince = solutionitem.solutionContent.solution.area;
item.solutionContent = solutionitem.solutionContent
item.channelSolutionNo = solutionitem.channelSolutionNo
return system.getResultSuccess(item); return system.getResultSuccess(item);
} }
......
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