Commit f5acc34a by linboxuan

tj

parent 0f8493e6
...@@ -80,6 +80,9 @@ class IcAPI extends APIBase { ...@@ -80,6 +80,9 @@ class IcAPI extends APIBase {
case "queryExpertApplyCommunicationLogs":// 查询需求沟通记录 2020-10-28 laolan case "queryExpertApplyCommunicationLogs":// 查询需求沟通记录 2020-10-28 laolan
opResult = await this.needinfoSve2.queryExpertApplyCommunicationLogs(pobj, pobj.actionBody, req); opResult = await this.needinfoSve2.queryExpertApplyCommunicationLogs(pobj, pobj.actionBody, req);
break; break;
case "queryCommunicationLog":// 查询需求沟通记录
opResult = await this.needinfoSve2.queryCommunicationLog(pobj, pobj.actionBody, req);
break;
case "bulkCreateNeeds": case "bulkCreateNeeds":
opResult = await this.needinfoSve.bulkCreateNeeds(pobj); opResult = await this.needinfoSve.bulkCreateNeeds(pobj);
break; break;
......
...@@ -100,5 +100,28 @@ class NeedinfoService2 extends ServiceBase { ...@@ -100,5 +100,28 @@ class NeedinfoService2 extends ServiceBase {
} }
//2020-10-28 laolan 新增查询需求沟通记录
async queryCommunicationLog(pobj){
console.log('query++pobj',pobj)
if (!pobj.actionBody.intentionBizId) {
return system.getResult(null, "actionBody.intentionBizId can not be empty,100493");
}
if(pobj.appInfo.uapp_id == 18){
if (!pobj.actionBody.userFeedBack) {
return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
}
}
var sql = "select followContent from n_need_info where channelNeedNo = :channelNeedNo ";
var where = {
channelNeedNo:pobj.actionBody.intentionBizId
}
var uappIdInfo = await this.customQuery(sql,where);
if(uappIdInfo){
uappIdInfo = uappIdInfo[0];
return system.getResultSuccess(uappIdInfo);
}
}
} }
module.exports = NeedinfoService2; module.exports = NeedinfoService2;
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