Commit 306c5823 by 王悦

getSolutionByChannelSolutionNo

parent 1a811722
......@@ -44,6 +44,9 @@ class IcAPI extends APIBase {
case "getItemByChannelNeedNo"://获取需求详情
opResult = await this.needinfoSve.getItemByChannelNeedNo(pobj);
break;
case "getSolutionByChannelSolutionNo"://获取方案详情
opResult = await this.needinfoSve.getSolutionByChannelSolutionNo(pobj);
break;
case "needClose"://需求关闭
opResult = await this.needinfoSve.needClose(pobj, pobj.actionBody, req);
break;
......
......@@ -27,6 +27,15 @@ class NeedinfoService extends ServiceBase {
}
return system.getResultSuccess(item);
}
async getSolutionByChannelSolutionNo(pobj) {
var item = await this.needsolutionDao.model.findOne({
where:{channelSolutionNo: pobj.actionBody.bizId}
});
if (!item) {
return system.getResult(null, "方案数据为空,30210");
}
return system.getResultSuccess(item);
}
async needinfo2fq(pobj) {
pobj.actionBody.needNo = await this.getBusUid("n");
pobj.actionBody.uapp_id = pobj.appInfo.id;
......
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