Commit 932f974b by 庄冰

submitProgramme

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