This commit is contained in:
何美荣 2025-11-29 15:54:50 +08:00
parent aedcba05bb
commit 5cde1c6e98

View File

@ -73,7 +73,9 @@ namespace APT.FO.WebApi.Controllers
{ {
var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID; var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
var departmentId = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID; var departmentId = APT.Infrastructure.Api.AppContext.CurrentSession.DepartmentID;
if(entity.APPLY_USER_ID == null)
entity.APPLY_USER_ID = loginUserId; entity.APPLY_USER_ID = loginUserId;
if(entity.APPLY_DEPARTMENT_ID == null)
entity.APPLY_DEPARTMENT_ID = departmentId; entity.APPLY_DEPARTMENT_ID = departmentId;
if (entity.COMPANY_ID == null) if (entity.COMPANY_ID == null)
{ {
@ -285,6 +287,7 @@ namespace APT.FO.WebApi.Controllers
monitorFileList.Add(item); monitorFileList.Add(item);
} }
} }
T_FM_NOTIFICATION_TASK task = null;
List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>(); List<T_FM_NOTIFICATION_TASK> notices = new List<T_FM_NOTIFICATION_TASK>();
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify")) if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
{ {
@ -421,13 +424,13 @@ namespace APT.FO.WebApi.Controllers
}, null, null, null, null, null, "FO043_SHOWPRINT", null,null, FMTASKTYPE.JobSite); }, null, null, null, null, null, "FO043_SHOWPRINT", null,null, FMTASKTYPE.JobSite);
return true; return true;
} }
}
T_FM_NOTIFICATION_TASK task = null;
if (entity.TaskID != Guid.Empty) if (entity.TaskID != Guid.Empty)
{ {
task = NotificationTaskService.GetTaskFinishModel(entity.TaskID); task = NotificationTaskService.GetTaskFinishModel(entity.TaskID);
task.SOURCE_FORMCODE = "FO043_SHOWPRINT"; task.SOURCE_FORMCODE = "FO043_SHOWPRINT";
} }
}
this.UnifiedCommit(() => this.UnifiedCommit(() =>
{ {
if (detailFileIds != null && detailFileIds.Any()) if (detailFileIds != null && detailFileIds.Any())