Uat_Study
hang 2022-05-18 18:28:43 +08:00
parent 16343f7eb6
commit 6cd8d2081d
1 changed files with 4 additions and 5 deletions

View File

@ -64,11 +64,6 @@ namespace IRaCIS.Core.Application.Service
{
var systemNotice = (await _systemNoticeRepository.Where(t => t.Id == addOrEditSystemNotice.Id, true, true).Include(t => t.NoticeUserTypeList).FirstOrDefaultAsync()).IfNullThrowException();
_mapper.Map(addOrEditSystemNotice, systemNotice);
if (addOrEditSystemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.HavePublished && systemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.NotPublish)
{
systemNotice.PublishedUserId = _userInfo.Id;
@ -81,6 +76,10 @@ namespace IRaCIS.Core.Application.Service
}
_mapper.Map(addOrEditSystemNotice, systemNotice);
await _systemNoticeRepository.SaveChangesAsync();
return ResponseOutput.Ok();