using System; using System.Collections.Generic; using NPP.SmartSchedue.Api.Contracts.Core.Enums; namespace NPP.SmartSchedue.Api.Contracts.Services.Integration.Output { /// /// 整合记录信息(包含任务集) /// 用于根据recordID查询整合记录并返回完整的任务信息 /// public class IntegrationRecordWithTasksOutput { /// /// 记录ID /// public long Id { get; set; } /// /// 整合批次编码 /// public string IntegrationBatchCode { get; set; } = string.Empty; /// /// 整合时间 /// public DateTime IntegrationTime { get; set; } /// /// 操作员用户ID /// public long OperatorUserId { get; set; } /// /// 操作员用户名 /// public string OperatorUserName { get; set; } = string.Empty; /// /// 操作员真实姓名 /// public string OperatorRealName { get; set; } = string.Empty; /// /// 策略配置详情 /// public IntegrationStrategyConfig StrategyConfig { get; set; } = new(); /// /// 人员分配结果详情 /// public PersonnelAllocationResult? PersonnelAllocationResult { get; set; } /// /// 设备分配结果详情 /// public EquipmentAllocationResult? EquipmentAllocationResult { get; set; } /// /// 成功任务数 /// public int SuccessTaskCount { get; set; } /// /// 失败任务数 /// public int FailedTaskCount { get; set; } /// /// 执行耗时(毫秒) /// public long ElapsedMilliseconds { get; set; } /// /// 公平性评分 /// public int FairnessScore { get; set; } /// /// 设备利用率 /// public decimal UtilizationRate { get; set; } /// /// 备注信息 /// public string Remarks { get; set; } = string.Empty; /// /// 创建时间 /// public DateTime CreatedTime { get; set; } /// /// 涉及的项目编号列表 /// public List ProjectNumbers { get; set; } = new(); /// /// 任务详细信息列表 /// public List TaskDetails { get; set; } = new(); /// /// 失败原因统计 /// public Dictionary FailureReasonStats { get; set; } = new(); /// /// 整合类型 /// public string IntegrationType { get; set; } = string.Empty; /// /// 发布状态 /// public string PublishStatus { get; set; } = string.Empty; } }