Commit 95d2f395 by 宋毅

增加内容

parents 4d1464d1 8a36d239
......@@ -3,7 +3,8 @@ FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2
MAINTAINER jy "jiangyong@gongsibao.com"
ADD center-order /apps/center-order/
WORKDIR /apps/center-order/
RUN cnpm install -S
RUN yum install gcc-c++.x86_64 -y
RUN npm install --unsafe-perm=true --allow-root
CMD ["node","/apps/center-order/main.js"]
......
......@@ -83,6 +83,9 @@ class IcAPI extends APIBase {
case "queryExpertApplyCommunicationLogs":// 查询需求沟通记录 2020-10-28 laolan
opResult = await this.needinfoSve2.queryExpertApplyCommunicationLogs(pobj, pobj.actionBody, req);
break;
case "queryCommunicationLog":// 查询需求沟通记录
opResult = await this.needinfoSve2.queryCommunicationLog(pobj, pobj.actionBody, req);
break;
case "bulkCreateNeeds":
opResult = await this.needinfoSve.bulkCreateNeeds(pobj);
break;
......
......@@ -74,8 +74,10 @@ class NeedinfoService extends ServiceBase {
if (!actionBody.intentionBizId) {
return system.getResultFail(-5001, "intentionBizId不能为空");
}
if (!actionBody.mobile) {
return system.getResultFail(-5002, "mobile不能为空");
if(actionBody.appName != '阿里云商机') {
if (!actionBody.mobile) {
return system.getResultFail(-5002, "mobile不能为空");
}
}
if (!actionBody.type) {
return system.getResultFail(-5003, "type不能为空");
......
......@@ -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;
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