Uat_Study
parent
16343f7eb6
commit
6cd8d2081d
|
@ -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();
|
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)
|
if (addOrEditSystemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.HavePublished && systemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.NotPublish)
|
||||||
{
|
{
|
||||||
systemNotice.PublishedUserId = _userInfo.Id;
|
systemNotice.PublishedUserId = _userInfo.Id;
|
||||||
|
@ -81,6 +76,10 @@ namespace IRaCIS.Core.Application.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
_mapper.Map(addOrEditSystemNotice, systemNotice);
|
||||||
|
|
||||||
|
|
||||||
await _systemNoticeRepository.SaveChangesAsync();
|
await _systemNoticeRepository.SaveChangesAsync();
|
||||||
|
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok();
|
||||||
|
|
Loading…
Reference in New Issue