|
@@ -463,11 +463,6 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
var typeSpliceName = string.Empty;
|
|
|
var hotspotHotSpotFullName = string.Empty;
|
|
|
- if (!string.IsNullOrEmpty(pagedDto.KnowledgeTypeId))
|
|
|
- {
|
|
|
- var type = await _knowledgeTypeRepository.GetAsync(x => x.Id == pagedDto.KnowledgeTypeId);
|
|
|
- typeSpliceName = type?.SpliceName;
|
|
|
- }
|
|
|
if (!string.IsNullOrEmpty(pagedDto.HotspotId))
|
|
|
{
|
|
|
var hotspot = await _hotspotTypeRepository.GetAsync(x => x.Id == pagedDto.HotspotId);
|
|
@@ -477,8 +472,8 @@ namespace Hotline.Api.Controllers
|
|
|
var (total, temp) = await _knowledgeRepository.Queryable(false,false,false)
|
|
|
.Includes(x => x.User)
|
|
|
.Includes(x => x.SystemOrganize)
|
|
|
- .Includes(x => x.KnowledgeType)
|
|
|
.Includes(x => x.SourceOrganize)
|
|
|
+ .Includes(x => x.HotspotType)
|
|
|
.Includes(x=>x.Workflow)
|
|
|
.Where(x => x.IsDeleted == false)
|
|
|
.Where(x => (x.Status == EKnowledgeStatus.Drafts && x.CreatorId == _sessionContext.UserId) || (x.Status != EKnowledgeStatus.Drafts))
|