Commit 3ccb9b2b by 王栋源

wdy

parent f71fdc86
...@@ -8,6 +8,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -8,6 +8,7 @@ class NeedsolutionService extends ServiceBase {
this.execlient = system.getObject("util.execClient"); this.execlient = system.getObject("util.execClient");
this.needinfoDao = system.getObject("db.dbneed.needinfoDao"); this.needinfoDao = system.getObject("db.dbneed.needinfoDao");
// this.push2aliSve = system.getObject("service.common.push2aliSve"); // this.push2aliSve = system.getObject("service.common.push2aliSve");
this.orderinfoDao = system.getObject("db.dbcorder.orderinfoDao");
} }
//提交方案 //提交方案
async submitProgramme(pobj){ async submitProgramme(pobj){
...@@ -447,8 +448,14 @@ class NeedsolutionService extends ServiceBase { ...@@ -447,8 +448,14 @@ class NeedsolutionService extends ServiceBase {
if(!ab.orderNo){ if(!ab.orderNo){
return system.getResultFail(-101,"订单号不能为空"); return system.getResultFail(-101,"订单号不能为空");
} }
var orderns = await this.orderinfoDao.model.findOne({
where:{channelOrderNo:ab.orderNo},raw:true
});
if(!orderns){
return system.getResultFail(-102,"订单不存在");
}
var ns = await this.dao.model.findOne({ var ns = await this.dao.model.findOne({
where:{orderNo:ab.orderNo},raw:true where:{orderNo:orderns.orderNo},raw:true
}); });
if(!ns || !ns.id){ if(!ns || !ns.id){
return system.getResultFail(-103,"未知方案"); return system.getResultFail(-103,"未知方案");
......
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