Commit 15b5f57d by 兰国旗

laolan

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