Commit 15b5f57d by 兰国旗

laolan

parent 9ddf34bc
...@@ -814,15 +814,17 @@ class RegCenterOrderService{ ...@@ -814,15 +814,17 @@ class RegCenterOrderService{
//回写沟通记录 //回写沟通记录
async regWriteCommunicationLog(pobj) { async regWriteCommunicationLog(pobj) {
console.log('actionBody------',pobj) console.log('回写沟通记录----pobj------',pobj)
// 查询需求沟通记录 // 查询需求沟通记录
pobj.actionBody.Note = ["noteTime", moment().format("YYYY-MM-DD HH:mm:ss"), "note", pobj.actionBody.note]; pobj.actionBody.Note = ["noteTime", moment().format("YYYY-MM-DD HH:mm:ss"), "note", pobj.actionBody.note];
let needRes = await this.needinfoDao.findOne({ channelNeedNo: pobj.actionBody.intentionBizId }); let needRes = await this.needinfoDao.findOne({ channelNeedNo: pobj.actionBody.intentionBizId });
console.log('needRes------',needRes) console.log('回写沟通记录----needRes------',needRes)
var uappIds var uappIds
// 没有需求单直接返回 // 没有需求单直接返回
if (!needRes) { if (!needRes) {
return system.getResult("没有这个需求单"); return system.getResult("没有这个需求单");
}else{
uappIds = needRes.uapp_id
} }
// 如果未推送/以推送 修改为已跟进 // 如果未推送/以推送 修改为已跟进
if (needRes.status == "wts" || needRes.status == "yts") { if (needRes.status == "wts" || needRes.status == "yts") {
...@@ -840,7 +842,6 @@ class RegCenterOrderService{ ...@@ -840,7 +842,6 @@ class RegCenterOrderService{
channelNeedNo: pobj.actionBody.intentionBizId channelNeedNo: pobj.actionBody.intentionBizId
}; };
var updateRes = await this.needinfoDao.update( paramWhere); var updateRes = await this.needinfoDao.update( paramWhere);
return system.getResultSuccess(uappIds);
// 有需求单有沟通记录 json_array_append // 有需求单有沟通记录 json_array_append
} else { } else {
var paramWhere = { var paramWhere = {
...@@ -849,8 +850,8 @@ class RegCenterOrderService{ ...@@ -849,8 +850,8 @@ class RegCenterOrderService{
}; };
var updateRes = await this.needinfoDao.update(paramWhere); var updateRes = await this.needinfoDao.update(paramWhere);
console.log('updateRes------',updateRes) console.log('updateRes------',updateRes)
return system.getResultSuccess(uappIds);
} }
return system.getResultSuccess(uappIds);
} }
//新增查询需求沟通记录 //新增查询需求沟通记录
async regQueryExpertCommunicationLogs(pobj){ async regQueryExpertCommunicationLogs(pobj){
......
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