fix:修复预警规则主体查询名称反参错误

add-param:增加预警规则主体反参
 - CreateTime 创建时间
This commit is contained in:
hardstylewyl 2025-03-06 17:22:02 +08:00
parent d8929fb41f
commit b4d98a5d89
2 changed files with 9 additions and 3 deletions

View File

@ -49,4 +49,9 @@ public sealed class WarningRuleDto
/// 规则版本,用于标识规则产物(如预警信息)
/// </summary>
public string Version { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
}

View File

@ -84,13 +84,14 @@ public class WarningService : ApplicationService
{
Id = x.Id,
SubSystemId = x.SubSystemId,
SubSystemName = customDict.GetValueOrDefault(x.SubSystemId),
SubSystemName = subSystemDict.GetValueOrDefault(x.SubSystemId),
CustomId = x.CustomId,
CustomName = subSystemDict.GetValueOrDefault(x.CustomId),
CustomName = customDict.GetValueOrDefault(x.CustomId),
Name = x.Name,
IsEnabled = x.IsEnabled,
WarningType = x.WarningType,
Version = x.Version
Version = x.Version,
CreateTime = x.CreateTime
}).ToList());
}
}