Commit 62c2797b by 庄冰

submitProgramme

parent 932f974b
......@@ -89,19 +89,26 @@ class NeedsolutionService extends ServiceBase {
return await this.db.transaction(async function (t) {
var od = await self.dao.create(ab,t);
if(od && od.id){
var followContent = {
followDate:new Date(),
content:"提交到方案"
};
followContent = JSON.stringify(followContent);
var needObj={
id:needinfo.id,
followManUserId: user.id,//跟进人id
followManName: user.channel_username,//跟进人姓名
followManMobile: user.mobile,//跟进人手机号(合伙人)
followManOnlyCode: user.channel_userid,//跟进者唯一码
followContent: followContent
id:needinfo.id
};
if(!needinfo.followManUserId){
needObj={
id:needinfo.id,
followManUserId: user.id,//跟进人id
followManName: user.channel_username,//跟进人姓名
followManMobile: user.mobile,//跟进人手机号(合伙人)
followManOnlyCode: user.channel_userid
};
}
if(!needinfo.followContent){
var followContent = {
followDate:new Date(),
content:"提交到方案"
};
followContent = JSON.stringify(followContent);
needObj["followContent"] = followContent;
}
await self.needinfoDao.update(needObj,t);
needinfo = await self.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true
......
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