Commit aa3790b1 by 兰国旗

laolan

parent 15b5f57d
//工商注册 //工商注册
const system = require("../../../system"); const system = require("../../../system");
const moment = require('moment'); const moment = require('moment');
const { where } = require("sequelize");
class RegCenterOrderService{ class RegCenterOrderService{
constructor() { constructor() {
this.needsolutionDao = system.getObject("db.dbneed.needsolutionDao"); this.needsolutionDao = system.getObject("db.dbneed.needsolutionDao");
...@@ -830,25 +831,24 @@ class RegCenterOrderService{ ...@@ -830,25 +831,24 @@ class RegCenterOrderService{
if (needRes.status == "wts" || needRes.status == "yts") { if (needRes.status == "wts" || needRes.status == "yts") {
var paramWhere = { var paramWhere = {
statusName: '已跟进', statusName: '已跟进',
status: 'ygj', status: 'ygj'
channelNeedNo: pobj.actionBody.intentionBizId
}; };
var updateRes = await this.needinfoDao.update(paramWhere); var updateRes = await this.needinfoDao.updateByWhere(paramWhere,{ where: { channelNeedNo: pobj.actionBody.intentionBizId } });
console.log('回写沟通记录----updateRes---',updateRes)
} }
// 有需求单但没有沟通记录 直接set // 有需求单但没有沟通记录 直接set
if (!needRes.followContent) { if (!needRes.followContent) {
var paramWhere = { var paramWhere = {
followContent: pobj.actionBody.Note, followContent: pobj.actionBody.Note
channelNeedNo: pobj.actionBody.intentionBizId
}; };
var updateRes = await this.needinfoDao.update( paramWhere); var updateRes = await this.needinfoDao.updateByWhere(paramWhere,{ where: { channelNeedNo: pobj.actionBody.intentionBizId } });
console.log('回写沟通记录----updateRes---updateRes---',updateRes)
// 有需求单有沟通记录 json_array_append // 有需求单有沟通记录 json_array_append
} else { } else {
var paramWhere = { var paramWhere = {
Note: pobj.actionBody.Note, Note: pobj.actionBody.Note
channelNeedNo: pobj.actionBody.intentionBizId
}; };
var updateRes = await this.needinfoDao.update(paramWhere); var updateRes = await this.needinfoDao.updateByWhere(paramWhere,{ where: { channelNeedNo: pobj.actionBody.intentionBizId } });
console.log('updateRes------',updateRes) console.log('updateRes------',updateRes)
} }
return system.getResultSuccess(uappIds); return system.getResultSuccess(uappIds);
......
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