Commit 47a96597 by 宋毅

Merge branch 'center-order' of gitlab.gongsibao.com:jiangyong/zhichan into center-order

parents 44ad40e9 200f15d5
......@@ -60,6 +60,9 @@ class IcpAPI extends APIBase {
case "getIcpProgrammeDetail"://获取方案详情(内部调用)
opResult = await this.needsolutionSve.getIcpProgrammeDetail(pobj);
break;
case "getProgrammeInfoByChannelNeedNo"://获取需求方案列表
opResult = await this.needsolutionSve.getProgrammeInfoByChannelNeedNo(pobj);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......
......@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase {
}
async getItemByNeedNo(pobj) {
var item = await this.dao.getItemByNeedNo(pobj.actionBody.needNo);
console.log(system.getResultSuccess(item));
if (!item) {
return system.getResult(null, "需求数据为空,30210");
}
......@@ -84,6 +85,10 @@ class NeedinfoService extends ServiceBase {
channelTypeName: actionBody.channel_type_name,
status: "wts"
}
if(nobj.channelTypeCode==7||nobj.channelTypeCode==5){
nobj.province=nobj.city,
nobj.city="";
}
await this.dao.create(nobj);
return system.getResultSuccess();
}
......@@ -114,5 +119,5 @@ class NeedinfoService extends ServiceBase {
}
module.exports = NeedinfoService;
// var a=new NeedinfoService();
// a.needinfo2fq();
\ No newline at end of file
var a=new NeedinfoService();
var b=a.getItemByNeedNo({actionBody:{needNo:"N202004132334EjurnEr"}});
\ No newline at end of file
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