修改通知
parent
620cadbda2
commit
e2d5bbcfa0
|
@ -65,6 +65,10 @@ 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;
|
||||
|
@ -76,8 +80,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
systemNotice.PublishedTime = null;
|
||||
}
|
||||
|
||||
_mapper.Map(addOrEditSystemNotice, systemNotice);
|
||||
|
||||
|
||||
await _systemNoticeRepository.SaveChangesAsync();
|
||||
|
||||
|
|
Loading…
Reference in New Issue