track/src/SJZY.Track.Domain/Aggregates/WarningAggregate/Complete/CompleteWarningDetailsIndex.cs
2025-03-10 14:29:53 +08:00

46 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Nest;
using SJZY.Expand.ElasticSearch;
using SJZY.Track.Domain.Consts;
namespace SJZY.Track.Domain.Aggregates.WarningAggregate.Complete;
[ElasticsearchType(RelationName = GlobalConst.CompleteWarningDetailsIndex)]
public sealed class CompleteWarningDetailsIndex : IdBaseIndex
{
public string IndexName { get; set; }
public int WarningId { get; set; }
public int CompleteWarningRuleItemId { get; set; }
public string Version { get; set; }
//public string NotifyModes { get; set; } //通知方式,多个方式(,)分割 eg: 1,2
public string NotifyUsers { get; set; } //通知人Json eg: [{"UserId":1,"UserName":"张三"},{"UserId":2,"UserName":"李四"}]
public int CheckPointTrackStatusId { get; set; } // (冗余)检查点轨迹状态Id
public string MissingTrackStatusIds { get; set; } //(冗余)缺失的轨迹状态
//订单信息
public int SubSystemId { get; set; } //(冗余)子系统Id
public string SubSystemName { get; set; } //(冗余)子系统名称
public int CustomId { get; set; } //(冗余)客户Id
public string CustomName { get; set; } //(冗余)客户名称
public int OrderId { get; set; }
public string OrderNo { get; set; } //订单号
public int OrderType { get; set; } //(冗余)订单类型
public string OrderTypeName { get; set; } //(冗余)订单类型名称
//可变属性
public int Status { get; set; } // 1:待处理,2:已处理,3:已关闭
//视图属性(todo:查es 最新)
// public int LatestTrackStatusId { get; set; } //最新轨迹状态Id
// public string LatestTrackStatus { get; set; } //(冗余)最新轨迹状态
// public int LatestTrackContentId { get; set; } //最新轨迹内容Id
// public string LatestTrackContent { get; set; } //(冗余)最新轨迹内容名称
// public DateTime LatestTrackTime { get; set; } //最新轨迹发生时间
// public float LatestTrackTimeZone { get; set; } //最新轨迹发生时区
// public string LatestTrackPlace { get; set; } //最新轨迹发生地
//审计属性
public DateTime CreateTime { get; set; } // 预警创建时间
public DateTime? ProcessedTime { get; set; } // 预警处理时间
}