|
@@ -461,7 +461,7 @@ namespace Hotline.Api.Controllers
|
|
.Includes(x=>x.SourceOrganize)
|
|
.Includes(x=>x.SourceOrganize)
|
|
.Where(x => x.IsDeleted == false)
|
|
.Where(x => x.IsDeleted == false)
|
|
.WhereIF(!string.IsNullOrEmpty(pagedDto.Title), x => x.Title.Contains(pagedDto.Title!))
|
|
.WhereIF(!string.IsNullOrEmpty(pagedDto.Title), x => x.Title.Contains(pagedDto.Title!))
|
|
- .WhereIF(pagedDto.Status.HasValue, x => x.Status == pagedDto.Status)
|
|
|
|
|
|
+ .WhereIF(pagedDto.Status.HasValue, x => x.Status == pagedDto.Status && x.ExpiredTime != null && x.ExpiredTime > DateTime.Now)
|
|
.WhereIF(pagedDto.IsPublic.HasValue, x => x.IsPublic == pagedDto.IsPublic)
|
|
.WhereIF(pagedDto.IsPublic.HasValue, x => x.IsPublic == pagedDto.IsPublic)
|
|
.WhereIF(!string.IsNullOrEmpty(pagedDto.Summary), x => x.Summary != null && x.Summary.Contains(pagedDto.Summary!))
|
|
.WhereIF(!string.IsNullOrEmpty(pagedDto.Summary), x => x.Summary != null && x.Summary.Contains(pagedDto.Summary!))
|
|
.WhereIF(!string.IsNullOrEmpty(typeSpliceName), x => x.KnowledgeType.SpliceName.EndsWith(typeSpliceName!))
|
|
.WhereIF(!string.IsNullOrEmpty(typeSpliceName), x => x.KnowledgeType.SpliceName.EndsWith(typeSpliceName!))
|