|
@@ -31,14 +31,16 @@ namespace GxPress.Service.Implement.Notice
|
|
|
var middleId = 0;
|
|
|
var addresseeUsers = new List<User>();
|
|
|
var ccUsers = new List<User>();
|
|
|
+ //添加通知
|
|
|
if (request.Id == 0)
|
|
|
{
|
|
|
noticeId = await _noticeRepository.InsertAsync(request);
|
|
|
+ if (noticeId == 0) return false;
|
|
|
var middleInsertTypes = new MiddleInsertTypeRequest
|
|
|
{
|
|
|
FolderId = request.FolderId,
|
|
|
MiddleId = noticeId,
|
|
|
- FolderType = GxPress.EnumConst.FolderTypeConst.Notice.GetHashCode(),
|
|
|
+ FolderType = GxPress.EnumConst.AllTypeConst.Inbox.GetHashCode(),
|
|
|
UserId = request.UserId,
|
|
|
MiddleSonId = 0,
|
|
|
NoticeAddresseeType = request.NoticeType,
|