Browse Source

公告详情 接入数据

lifa 1 year ago
parent
commit
436e7562c8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/platform/ZhonTai.Admin/Services/DiTuiAPI/NoticeService.cs

+ 3 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/NoticeService.cs

@@ -107,7 +107,9 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
                 throw ResultOutput.Exception("ID不可为空");
             }
 
-            var noticeDetail = await _noticeRepository.Select.DisableGlobalFilter(FilterNames.Tenant).FirstAsync(a => new NoticeDetailOutput() { 
+            var noticeDetail = await _noticeRepository.Select.DisableGlobalFilter(FilterNames.Tenant)
+                .Where(a => a.Id == id)
+                .FirstAsync(a => new NoticeDetailOutput() { 
                 Id = a.Id,
                 Title = a.Title,
                 Content = a.Content,