|
@@ -93,38 +93,38 @@ namespace Hotline.Share.Dtos.Planlibrary
|
|
|
/// </summary>
|
|
|
public string StatusName => NewStatus.GetDescription();
|
|
|
|
|
|
- public HotspotDto HotspotType { get; set; }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 热点
|
|
|
- /// </summary>
|
|
|
- public string HotspotName => HotspotType != null ? HotspotType.HotSpotFullName : string.Empty;
|
|
|
-
|
|
|
/// <summary>
|
|
|
- /// 知识分类名称
|
|
|
+ /// 预案分类
|
|
|
/// </summary>
|
|
|
- public string KnowledgeTypeText => GetKnowledgeTypeText(KnowledgeType);
|
|
|
+ public List<PlanRelationTypeDto> PlanTypes { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 知识分类
|
|
|
+ /// 预案分类名称
|
|
|
/// </summary>
|
|
|
- public List<PlanRelationTypeDto> KnowledgeType { get; set; }
|
|
|
+ public string PlanTypeText => GetPlanTypeText(PlanTypes);
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 获取知识分类名称
|
|
|
+ /// 获取预案分类名称
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public string GetKnowledgeTypeText(List<PlanRelationTypeDto> items)
|
|
|
+ public string GetPlanTypeText(List<PlanRelationTypeDto> items)
|
|
|
{
|
|
|
|
|
|
- if (KnowledgeType != null && KnowledgeType.Any())
|
|
|
+ if (PlanTypes != null && PlanTypes.Any())
|
|
|
{
|
|
|
- var names = KnowledgeType.Select(x => x.PlanTypeName).ToList();
|
|
|
+ var names = PlanTypes.Select(x => x.PlanTypeName).ToList();
|
|
|
return string.Join(",", names);
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
+ public HotspotDto HotspotType { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 热点
|
|
|
+ /// </summary>
|
|
|
+ public string HotspotName => HotspotType != null ? HotspotType.HotSpotFullName : string.Empty;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public record PlanRelationTypeDto
|