diff --git a/APT.MicroApi/APT.FO.WebApi/Controllers/LeaderWellRecordController.cs b/APT.MicroApi/APT.FO.WebApi/Controllers/LeaderWellRecordController.cs index 6e17e5b..1b91256 100644 --- a/APT.MicroApi/APT.FO.WebApi/Controllers/LeaderWellRecordController.cs +++ b/APT.MicroApi/APT.FO.WebApi/Controllers/LeaderWellRecordController.cs @@ -258,6 +258,7 @@ namespace APT.FO.WebApi.Controllers } } entity.STATUS = FOStatusEnum.Draft; + T_FM_NOTIFICATION_TASK task = null; var sendNotices = new List(); if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) { @@ -292,7 +293,12 @@ namespace APT.FO.WebApi.Controllers } } } - + + if (entity.TaskID != Guid.Empty) + { + task = NotificationTaskService.GetTaskFinishModel(entity.TaskID); + task.SOURCE_FORMCODE = "FO041_SHOWPRINT"; + } } this.UnifiedCommit(() => { @@ -328,6 +334,8 @@ namespace APT.FO.WebApi.Controllers this.BantchSaveEntityNoCommit(fileList); if (sendNotices != null && sendNotices.Any()) this.BantchSaveEntityNoCommit(sendNotices); + if (task != null) + this.UpdateEntityNoCommit(task); }); return true; });