Commit 43eaed9b by 庄冰

createSolutionByOrder

parent d666052a
......@@ -369,15 +369,6 @@ class NeedsolutionService extends ServiceBase {
if(!app || !app.uapp_id){
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 bizType = "esp.companyreg";
if(ab.companyName){
......@@ -409,11 +400,10 @@ class NeedsolutionService extends ServiceBase {
// ab["solutionNo"] = solutionNo;
var solutionNo = await this.getBusUid("ns");
var reqObj = {
solutionContent:solutionContent,solutionNo:solutionNo,status:"ywc",needNo:needinfo.needNo,
channelNeedNo:needinfo.channelNeedNo,orderNo:ab.orderNo,createUserId:needinfo.followManUserId
solutionContent:solutionContent,solutionNo:solutionNo,status:"ywc"
};
await this.dao.create(reqObj);
return system.getResultSuccess();
var ns = await this.dao.create(reqObj);
return system.getResultSuccess(ns);
}
//接收方案状态及支付信息
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