Commit 932f974b by 庄冰

submitProgramme

parent 6a378872
...@@ -85,8 +85,9 @@ class NeedsolutionService extends ServiceBase { ...@@ -85,8 +85,9 @@ class NeedsolutionService extends ServiceBase {
ab["solutionNo"] = solutionNo; ab["solutionNo"] = solutionNo;
ab["status"] = "dqr"; ab["status"] = "dqr";
ab.solutionContent = JSON.stringify(ab.solutionContent); ab.solutionContent = JSON.stringify(ab.solutionContent);
var self = this;
return await this.db.transaction(async function (t) { return await this.db.transaction(async function (t) {
var od = await this.dao.create(ab,t); var od = await self.dao.create(ab,t);
if(od && od.id){ if(od && od.id){
var followContent = { var followContent = {
followDate:new Date(), followDate:new Date(),
...@@ -101,8 +102,8 @@ class NeedsolutionService extends ServiceBase { ...@@ -101,8 +102,8 @@ class NeedsolutionService extends ServiceBase {
followManOnlyCode: user.channel_userid,//跟进者唯一码 followManOnlyCode: user.channel_userid,//跟进者唯一码
followContent: followContent followContent: followContent
}; };
await this.needinfoDao.update(needObj,t); await self.needinfoDao.update(needObj,t);
needinfo = await this.needinfoDao.model.findOne({ needinfo = await self.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true where:{needNo:ab.needNo},raw:true
}); });
return system.getResultSuccess({needinfo:needinfo,needsolution:od}); return system.getResultSuccess({needinfo:needinfo,needsolution:od});
......
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