|
@@ -214,19 +214,25 @@ namespace Hotline.KnowledgeBase
|
|
workFlow.WorkFlowApplyStatus = EKnowledgeWorkFlowStatus.Revoke;
|
|
workFlow.WorkFlowApplyStatus = EKnowledgeWorkFlowStatus.Revoke;
|
|
await _knowledgeWorkFlowRepository.UpdateAsync(workFlow);
|
|
await _knowledgeWorkFlowRepository.UpdateAsync(workFlow);
|
|
|
|
|
|
- switch (workFlow.WorkflowModuleStatus)
|
|
|
|
- {
|
|
|
|
- case EKnowledgeApplyType.Add:
|
|
|
|
- //将知识保存为草稿
|
|
|
|
- knowledge.Status = EKnowledgeStatus.Drafts;
|
|
|
|
- await _knowledgeRepository.UpdateAsync(knowledge, cancellationToken);
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- //现有知识状态更改为已撤回
|
|
|
|
- knowledge.Status = EKnowledgeStatus.Revert;
|
|
|
|
- await _knowledgeRepository.UpdateAsync(knowledge, cancellationToken);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ //现有知识状态更改为已撤回
|
|
|
|
+ knowledge.Status = EKnowledgeStatus.Revert;
|
|
|
|
+ await _knowledgeRepository.UpdateAsync(knowledge, cancellationToken);
|
|
|
|
+
|
|
|
|
+ //switch (workFlow.WorkflowModuleStatus)
|
|
|
|
+ // {
|
|
|
|
+ // case EKnowledgeApplyType.Add:
|
|
|
|
+ // //将知识保存为草稿
|
|
|
|
+ // knowledge.Status = EKnowledgeStatus.Drafts;
|
|
|
|
+ // await _knowledgeRepository.UpdateAsync(knowledge, cancellationToken);
|
|
|
|
+ // break;
|
|
|
|
+ // default:
|
|
|
|
+ // //现有知识状态更改为已撤回
|
|
|
|
+ // knowledge.Status = EKnowledgeStatus.Revert;
|
|
|
|
+ // await _knowledgeRepository.UpdateAsync(knowledge, cancellationToken);
|
|
|
|
+ // break;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ //}
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|