Commit a0325a54 by 王栋源

wdy

parent 7f9c7d25
...@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase { ...@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase {
} }
async getItemByNeedNo(pobj) { async getItemByNeedNo(pobj) {
var item = await this.dao.getItemByNeedNo(pobj.actionBody.needNo); var item = await this.dao.getItemByNeedNo(pobj.actionBody.needNo);
console.log(system.getResultSuccess(item));
if (!item) { if (!item) {
return system.getResult(null, "需求数据为空,30210"); return system.getResult(null, "需求数据为空,30210");
} }
...@@ -84,7 +85,7 @@ class NeedinfoService extends ServiceBase { ...@@ -84,7 +85,7 @@ class NeedinfoService extends ServiceBase {
channelTypeName: actionBody.channel_type_name, channelTypeName: actionBody.channel_type_name,
status: "wts" status: "wts"
} }
if(nobj.channelTypeCode==7||nobj.channelTypeCode==6){ if(nobj.channelTypeCode==7||nobj.channelTypeCode==5){
nobj.province=nobj.city, nobj.province=nobj.city,
nobj.city=""; nobj.city="";
} }
...@@ -118,5 +119,5 @@ class NeedinfoService extends ServiceBase { ...@@ -118,5 +119,5 @@ class NeedinfoService extends ServiceBase {
} }
module.exports = NeedinfoService; module.exports = NeedinfoService;
// var a=new NeedinfoService(); var a=new NeedinfoService();
// a.needinfo2fq(); var b=a.getItemByNeedNo({actionBody:{needNo:"N202004132334EjurnEr"}});
\ No newline at end of file \ 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