Commit aa3790b1 by 兰国旗

laolan

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