소스 검색

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) &&