|
@@ -1,10 +1,8 @@
|
|
|
using DotNetCore.CAP;
|
|
|
using Hotline.FlowEngine;
|
|
|
using Hotline.FlowEngine.Workflows;
|
|
|
-using Hotline.Orders;
|
|
|
using Hotline.Settings;
|
|
|
using Hotline.Share.Dtos.Knowledge;
|
|
|
-using Hotline.Share.Dtos.Order;
|
|
|
using Hotline.Share.Enums.KnowledgeBase;
|
|
|
using Hotline.Share.Mq;
|
|
|
using MapsterMapper;
|
|
@@ -293,11 +291,11 @@ namespace Hotline.KnowledgeBase
|
|
|
// var knowledge = await _knowledgeRepository.GetAsync(p => p.Id == workFlow.KnowledgeId, cancellationToken);
|
|
|
|
|
|
var knowledge = await _knowledgeRepository.Queryable()
|
|
|
- . Includes(it => it.SystemOrganize)
|
|
|
- .Includes(it => it.HotspotType)
|
|
|
- .Includes(it => it.User)
|
|
|
- .Where(p => p.Id == workFlow.KnowledgeId)
|
|
|
- .FirstAsync();
|
|
|
+ .Includes(it => it.SystemOrganize)
|
|
|
+ .Includes(it => it.HotspotType)
|
|
|
+ .Includes(it => it.User)
|
|
|
+ .Where(p => p.Id == workFlow.KnowledgeId)
|
|
|
+ .FirstAsync();
|
|
|
|
|
|
if (knowledge == null)
|
|
|
throw new UserFriendlyException($"知识查询失败");
|
|
@@ -377,7 +375,7 @@ namespace Hotline.KnowledgeBase
|
|
|
await _capPublisher.PublishAsync(EventNames.HotlineKnowledgeInfoUpdate, knowledgeSendDto, cancellationToken: cancellationToken);
|
|
|
else if (isSendType == "2") //删除知识推送
|
|
|
|
|
|
- await _capPublisher.PublishAsync(EventNames.HotlineKnowledgeInfoAbandon, knowledgeSendDto, cancellationToken: cancellationToken);
|
|
|
+ await _capPublisher.PublishAsync(EventNames.HotlineKnowledgeInfoAbandon, knowledgeSendDto, cancellationToken: cancellationToken);
|
|
|
#endregion
|
|
|
}
|
|
|
}
|