Commit 43eaed9b by 庄冰

createSolutionByOrder

parent d666052a
...@@ -369,15 +369,6 @@ class NeedsolutionService extends ServiceBase { ...@@ -369,15 +369,6 @@ class NeedsolutionService extends ServiceBase {
if(!app || !app.uapp_id){ if(!app || !app.uapp_id){
return system.getResultFail(-100,"未知渠道"); return system.getResultFail(-100,"未知渠道");
} }
if(!ab.solutionBizid){
return system.getResultFail(-101,"需求编号不能为空");
}
var needinfo = await this.needinfoDao.model.findOne({
where:{channelNeedNo:ab.intentionBizId,uapp_id:app.uapp_id},raw:true
});
if(!needinfo || !needinfo.id){
return system.getResultFail(-102,"未知需求信息");
}
var solution = ""; var solution = "";
var bizType = "esp.companyreg"; var bizType = "esp.companyreg";
if(ab.companyName){ if(ab.companyName){
...@@ -409,11 +400,10 @@ class NeedsolutionService extends ServiceBase { ...@@ -409,11 +400,10 @@ class NeedsolutionService extends ServiceBase {
// ab["solutionNo"] = solutionNo; // ab["solutionNo"] = solutionNo;
var solutionNo = await this.getBusUid("ns"); var solutionNo = await this.getBusUid("ns");
var reqObj = { var reqObj = {
solutionContent:solutionContent,solutionNo:solutionNo,status:"ywc",needNo:needinfo.needNo, solutionContent:solutionContent,solutionNo:solutionNo,status:"ywc"
channelNeedNo:needinfo.channelNeedNo,orderNo:ab.orderNo,createUserId:needinfo.followManUserId
}; };
await this.dao.create(reqObj); var ns = await this.dao.create(reqObj);
return system.getResultSuccess(); return system.getResultSuccess(ns);
} }
//接收方案状态及支付信息 //接收方案状态及支付信息
async receiveSolutionPayInfo(pobj){ async receiveSolutionPayInfo(pobj){
......
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