瀏覽代碼

1、预案检索全文搜索查询不准确修复

libin 3 月之前
父節點
當前提交
b62ea0375c
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/Hotline.Application/Caselibrary/CaseApplication.cs

+ 3 - 1
src/Hotline.Application/Caselibrary/CaseApplication.cs

@@ -213,7 +213,9 @@ namespace Hotline.Application.Caselibrary
                 .Includes(x => x.Order)
                 .Includes(x => x.Knowledge)
                 .Where(x => x.IsDeleted == false)
-                .WhereIF(pagedDto.IsPopular.HasValue, x => x.IsPopular == pagedDto.IsPopular)
+
+                .WhereIF(pagedDto.IsPopular == true, x => x.IsPopular == true)
+
                 .WhereIF(OrgSeedData.CenterId != pagedDto.CreateOrgId && !string.IsNullOrEmpty(pagedDto.CreateOrgId), x => x.CreatorOrgId != null && x.CreatorOrgId.StartsWith(pagedDto.CreateOrgId!))
 
                 .WhereIF(!string.IsNullOrEmpty(pagedDto.Title) &&