Commit 59b1c382 by 庄冰

aaa

parent 85f7f3b4
...@@ -75,7 +75,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -75,7 +75,7 @@ class NeedsolutionService extends ServiceBase {
} }
//获取需求信息 //获取需求信息
var needinfo = await this.needinfoDao.model.findOne({ var needinfo = await this.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true where:{channelNeedNo:ab.needNo},raw:true
}); });
if(!needinfo || !needinfo.id){ if(!needinfo || !needinfo.id){
return system.getResultFail(-201,"未知需求信息"); return system.getResultFail(-201,"未知需求信息");
...@@ -115,7 +115,7 @@ class NeedsolutionService extends ServiceBase { ...@@ -115,7 +115,7 @@ class NeedsolutionService extends ServiceBase {
} }
await self.needinfoDao.update(needObj,t); await self.needinfoDao.update(needObj,t);
needinfo = await self.needinfoDao.model.findOne({ needinfo = await self.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true where:{channelNeedNo:ab.needNo},raw:true
}); });
needinfo["pushflag"]=pushflag; needinfo["pushflag"]=pushflag;
return system.getResultSuccess({needinfo:needinfo,needsolution:od}); return system.getResultSuccess({needinfo:needinfo,needsolution:od});
...@@ -164,13 +164,13 @@ class NeedsolutionService extends ServiceBase { ...@@ -164,13 +164,13 @@ class NeedsolutionService extends ServiceBase {
// } // }
//获取需求信息 //获取需求信息
var needinfo = await this.needinfoDao.model.findOne({ var needinfo = await this.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true where:{channelNeedNo:ab.needNo},raw:true
}); });
if(!needinfo || !needinfo.id){ if(!needinfo || !needinfo.id){
return system.getResultFail(-102,"未知需求信息"); return system.getResultFail(-102,"未知需求信息");
} }
var ns = await this.dao.model.findAll({ var ns = await this.dao.model.findAll({
where:{needNo:ab.needNo,createUserId:user.id},raw:true, where:{needNo:needinfo.needNo,createUserId:user.id},raw:true,
attributes:["needNo","solutionNo","orderNo","solutionContent","status","statusName"] attributes:["needNo","solutionNo","orderNo","solutionContent","status","statusName"]
}); });
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