Commit e7c95d63 by 庄冰

needinfo

parent 792e58f5
...@@ -1076,13 +1076,6 @@ class NeedsolutionService extends ServiceBase { ...@@ -1076,13 +1076,6 @@ class NeedsolutionService extends ServiceBase {
var ns = await this.dao.model.findAll({ var ns = await this.dao.model.findAll({
where:{channelSolutionNo:ab.BizId},raw:true where:{channelSolutionNo:ab.BizId},raw:true
}); });
if(ns && ns.needNo){
var needinfo = await this.needinfoDao.model.findAll({
where:{needNo:ns.needNo},raw:true,
attributes:["publishName","publishMobile","channelUserId"]
});
ns.needinfo = needinfo;
}
return system.getResultSuccess(ns); return system.getResultSuccess(ns);
} }
//获取方案详情(前端调用) //获取方案详情(前端调用)
...@@ -1097,9 +1090,16 @@ class NeedsolutionService extends ServiceBase { ...@@ -1097,9 +1090,16 @@ class NeedsolutionService extends ServiceBase {
return system.getResultFail(-101,"方案编号不能为空"); return system.getResultFail(-101,"方案编号不能为空");
} }
//获取方案信息 //获取方案信息
var ns = await this.dao.model.findAll({ var ns = await this.dao.model.findOne({
where:{solutionNo:ab.solutionNo,createUserId:user.id},raw:true where:{solutionNo:ab.solutionNo,createUserId:user.id},raw:true
}); });
if(ns && ns.needNo){
var needinfo = await this.needinfoDao.model.findOne({
where:{needNo:ns.needNo},raw:true,
attributes:["publishName","publishMobile","channelUserId"]
});
ns.needinfo = needinfo;
}
return system.getResultSuccess(ns); return system.getResultSuccess(ns);
} }
//---------------------icp注册-end----------------------------------------------------------------- //---------------------icp注册-end-----------------------------------------------------------------
......
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