Commit 5c197fc2 by 庄冰

zhuangbing

parent d198fdea
...@@ -418,7 +418,9 @@ class NeedsolutionService extends ServiceBase { ...@@ -418,7 +418,9 @@ class NeedsolutionService extends ServiceBase {
// if(!ab.status){ // if(!ab.status){
// return system.getResultFail(-102,"状态不能为空"); // return system.getResultFail(-102,"状态不能为空");
// } // }
var needsolutioninfo = await this.dao.findOne({ channelSolutionNo: ab.channelSolutionNo,uapp_id:app.uapp_id }); var needsolutioninfo = await this.dao.model.findOne({
where:{channelSolutionNo: ab.channelSolutionNo},raw:true
});
if(!needsolutioninfo || !needsolutioninfo.id){ if(!needsolutioninfo || !needsolutioninfo.id){
return system.getResultFail(-400,"未知方案"); return system.getResultFail(-400,"未知方案");
} }
...@@ -432,7 +434,9 @@ class NeedsolutionService extends ServiceBase { ...@@ -432,7 +434,9 @@ class NeedsolutionService extends ServiceBase {
needsolutioninfo.status = ab.status; needsolutioninfo.status = ab.status;
} }
await this.dao.update(needsolutioninfo); await this.dao.update(needsolutioninfo);
var ns = await this.dao.findOne({ channelSolutionNo: ab.channelSolutionNo,uapp_id:app.uapp_id }); var ns = await this.dao.model.findOne({
where:{channelSolutionNo: ab.channelSolutionNo},raw:true
});
return system.getResultSuccess(ns); return system.getResultSuccess(ns);
} }
......
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