Commit 843fcb5d by 庄冰

submitProgramme

parent 62c2797b
......@@ -89,6 +89,7 @@ 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 pushflag = 0;//推送标志 值为1推送小记
var needObj={
id:needinfo.id
};
......@@ -108,11 +109,13 @@ class NeedsolutionService extends ServiceBase {
};
followContent = JSON.stringify(followContent);
needObj["followContent"] = followContent;
pushflag = 1;
}
await self.needinfoDao.update(needObj,t);
needinfo = await self.needinfoDao.model.findOne({
where:{needNo:ab.needNo},raw:true
});
needinfo["pushflag"]=pushflag;
return system.getResultSuccess({needinfo:needinfo,needsolution:od});
}else{
return system.getResultFail(-202, "提交方案失败");
......
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