feat(workflow): 添加节点类型字段支持

- 在 ApiResult 类中新增 NodeType 属性
- 在工作流引擎查询中添加节点类型映射
- 实现节点类型数据的返回功能
main
陈伟 2026-02-08 10:41:45 +08:00
parent ef2ffc146b
commit e723e48c8d
2 changed files with 4 additions and 1 deletions

View File

@ -120,6 +120,8 @@ public class FlowQuerySingleResultDto
public int? Type { get; set; }
public string WorkStatus { get; set; }
public string NodeType { get; set; }
}
/// <summary>

View File

@ -451,7 +451,8 @@ public class WorkflowEngineApp : SqlSugarBaseApp<SysCategoryType, SugarDbContext
Status = SqlFunc.IIF(i.Status == "Rejected", "Rejected", w.Status),
WorkStatus = i.Status,
CreateTime = i.CreateTime,
InitiatorName = i.InitiatorName
InitiatorName = i.InitiatorName,
NodeType = n.NodeType
});
// 分页查询