development
温天培 11 months ago
parent 73fb3a7b0e
commit f216b2ad86

@ -226,6 +226,7 @@ public class SysNoticeService : ISysNoticeService, IDynamicApiController, ITrans
.ToListAsync(); .ToListAsync();
var count = await _sysNoticeRep.AsQueryable().InnerJoin<SysNoticeUser>((n, u) => n.Id == u.NoticeId).Where((n, u) => u.UserId == UserManager.UserId && u.ReadStatus == NoticeUserStatus.UNREAD).CountAsync(); var count = await _sysNoticeRep.AsQueryable().InnerJoin<SysNoticeUser>((n, u) => n.Id == u.NoticeId).Where((n, u) => u.UserId == UserManager.UserId && u.ReadStatus == NoticeUserStatus.UNREAD).CountAsync();
List<dynamic> noticeClays = new List<dynamic>(); List<dynamic> noticeClays = new List<dynamic>();
int index = 0; int index = 0;
foreach (var item in dic) foreach (var item in dic)

Loading…
Cancel
Save