diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromSafeController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromSafeController.cs index 880d1ec..6fee0a1 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromSafeController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromSafeController.cs @@ -95,6 +95,7 @@ namespace APT.FO.WebApi.Controllers t.Nav_User = null; }); } + T_FM_NOTIFICATION_TASK task = null; if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) { 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(() => { @@ -162,6 +168,8 @@ namespace APT.FO.WebApi.Controllers this.BantchSaveEntityNoCommit(notices); if (job != null) UpdateEntityNoCommit(job); + if (task != null) + UpdateEntityNoCommit(task); }); return true; }); diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromTechController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromTechController.cs index f9e5a63..4e83612 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromTechController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/TechDisclosureFromTechController.cs @@ -95,6 +95,7 @@ namespace APT.FO.WebApi.Controllers t.Nav_User = null; }); } + T_FM_NOTIFICATION_TASK task = null; if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) { 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.已归档; } + if (entity.TaskID != Guid.Empty) + { + task = NotificationTaskService.GetTaskFinishModel(entity.TaskID); + task.SOURCE_FORMCODE = "FO035_SHOWPRINT"; + } } this.UnifiedCommit(() => { @@ -141,6 +147,8 @@ namespace APT.FO.WebApi.Controllers this.BantchSaveEntityNoCommit(files); if (notices != null && notices.Any()) this.BantchSaveEntityNoCommit(notices); + if (task != null) + UpdateEntityNoCommit(task); }); return true; });