Commit dead33de by 庄冰

aaa

parent 1b11abe8
...@@ -329,34 +329,52 @@ class NeedsolutionService extends ServiceBase { ...@@ -329,34 +329,52 @@ class NeedsolutionService extends ServiceBase {
return system.getResultSuccess(); return system.getResultSuccess();
} }
//立即支付下单保存方案 // //立即支付下单保存方案
async createSolutionByOrder(pobj){ // async createSolutionByOrder(pobj){
var ab = pobj.actionBody; // var ab = pobj.actionBody;
var app = pobj.appInfo; // var app = pobj.appInfo;
if(!app || !app.uapp_id){ // if(!app || !app.uapp_id){
return system.getResultFail(-100,"未知渠道"); // return system.getResultFail(-100,"未知渠道");
} // }
if(!ab.solutionBizid){ // if(!ab.solutionBizid){
return system.getResultFail(-101,"需求编号不能为空"); // return system.getResultFail(-101,"需求编号不能为空");
} // }
var needinfo = await this.needinfoDao.model.findOne({ // var needinfo = await this.needinfoDao.model.findOne({
where:{channelNeedNo:ab.intentionBizId,uapp_id:app.uapp_id},raw:true // where:{channelNeedNo:ab.intentionBizId,uapp_id:app.uapp_id},raw:true
}); // });
if(!needinfo || !needinfo.id){ // if(!needinfo || !needinfo.id){
return system.getResultFail(-102,"未知需求信息"); // return system.getResultFail(-102,"未知需求信息");
} // }
var solution = { // var solution = {
"companyName":ab.companyName, // "companyName":ab.companyName,
"area":ab.area, // "area":ab.area,
"city": ab.city, // "city": ab.city,
"companyCategory": ab.companyCategory, // "companyCategory": ab.companyCategory,
"companyType": ab.companyType, // "companyType": ab.companyType,
"orgType" :ab.orgType, // "orgType" :ab.orgType,
"industryType": ab,industryType, // "industryType": ab,industryType,
"scope": ab.scope, // "scope": ab.scope,
"remark":ab.remark // "remark":ab.remark
} // };
} // var {
// "notes":"方案备注",
// "bizType":"companyreg",
// "solution":{
// "area":"区",
// "city":"市",
// "scope":"经营范围",
// "remark":"方案备注",
// "orgType":"组织类型",
// "companyName":"测试公司名称",
// "companyType":"公司性质",
// "industryType":"行业",
// "companyCategory":"纳税人类型"
// }
// }
// var reqObj = {
// }
// }
} }
module.exports = NeedsolutionService; module.exports = NeedsolutionService;
......
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