技术交底待办未消失

This commit is contained in:
何美荣 2025-12-26 08:58:40 +08:00
parent 3d534d453f
commit 641fb69dc3
2 changed files with 16 additions and 0 deletions

View File

@ -95,6 +95,7 @@ namespace APT.FO.WebApi.Controllers
t.Nav_User = null; t.Nav_User = null;
}); });
} }
T_FM_NOTIFICATION_TASK task = null;
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
{ {
if (entity.DISCLOSURE_DATE == null || entity.DISCLOSURE_DATE == DateTime.Parse("0001-01-01 00:00:00")) if (entity.DISCLOSURE_DATE == null || entity.DISCLOSURE_DATE == DateTime.Parse("0001-01-01 00:00:00"))
@ -145,6 +146,11 @@ namespace APT.FO.WebApi.Controllers
} }
} }
} }
if (entity.TaskID != Guid.Empty)
{
task = NotificationTaskService.GetTaskFinishModel(entity.TaskID);
task.SOURCE_FORMCODE = "FO037_SHOWPRINT";
}
} }
this.UnifiedCommit(() => this.UnifiedCommit(() =>
{ {
@ -162,6 +168,8 @@ namespace APT.FO.WebApi.Controllers
this.BantchSaveEntityNoCommit(notices); this.BantchSaveEntityNoCommit(notices);
if (job != null) if (job != null)
UpdateEntityNoCommit(job); UpdateEntityNoCommit(job);
if (task != null)
UpdateEntityNoCommit(task);
}); });
return true; return true;
}); });

View File

@ -95,6 +95,7 @@ namespace APT.FO.WebApi.Controllers
t.Nav_User = null; t.Nav_User = null;
}); });
} }
T_FM_NOTIFICATION_TASK task = null;
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
{ {
if (entity.DISCLOSURE_DATE == null || entity.DISCLOSURE_DATE == DateTime.Parse("0001-01-01 00:00:00")) if (entity.DISCLOSURE_DATE == null || entity.DISCLOSURE_DATE == DateTime.Parse("0001-01-01 00:00:00"))
@ -126,6 +127,11 @@ namespace APT.FO.WebApi.Controllers
{ {
entity.FORM_STATUS = (int)FOTeamActivityState.; entity.FORM_STATUS = (int)FOTeamActivityState.;
} }
if (entity.TaskID != Guid.Empty)
{
task = NotificationTaskService.GetTaskFinishModel(entity.TaskID);
task.SOURCE_FORMCODE = "FO035_SHOWPRINT";
}
} }
this.UnifiedCommit(() => this.UnifiedCommit(() =>
{ {
@ -141,6 +147,8 @@ namespace APT.FO.WebApi.Controllers
this.BantchSaveEntityNoCommit(files); this.BantchSaveEntityNoCommit(files);
if (notices != null && notices.Any()) if (notices != null && notices.Any())
this.BantchSaveEntityNoCommit(notices); this.BantchSaveEntityNoCommit(notices);
if (task != null)
UpdateEntityNoCommit(task);
}); });
return true; return true;
}); });