|
@@ -590,9 +590,9 @@ namespace Hotline.Api.Controllers
|
|
|
public async Task<bool> FindingDuplicate([FromBody] KnowledgeFindingDuplicateDto dto)
|
|
|
{
|
|
|
var any = await _knowledgeRepository.Queryable().Where(x => x.Status == EKnowledgeStatus.Auditing || x.Status >= EKnowledgeStatus.OnShelf)
|
|
|
- .WhereIF(string.IsNullOrEmpty(dto.Title), x => x.Title.Equals(dto.Title))
|
|
|
- .WhereIF(string.IsNullOrEmpty(dto.Summary), x => x.Title.Equals(dto.Summary))
|
|
|
- .WhereIF(string.IsNullOrEmpty(dto.Content), x => x.Title.Equals(dto.Content))
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Title), x => x.Title.Equals(dto.Title))
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Summary), x => x.Title.Equals(dto.Summary))
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Content), x => x.Title.Equals(dto.Content))
|
|
|
.AnyAsync();
|
|
|
return any;
|
|
|
}
|