40 lines
930 B
C#
40 lines
930 B
C#
namespace SJZY.Track.Domain.Dtos.Forewarning;
|
|
|
|
public class RuleNotifyValue
|
|
{
|
|
public int RuleId { get; set; }
|
|
|
|
public int OrderId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 第几次通知
|
|
/// </summary>
|
|
public int Count { get; set; }
|
|
|
|
/// <summary>
|
|
/// 结束轨迹状态
|
|
/// </summary>
|
|
public int TrackEnd { get; set; }
|
|
|
|
public RuleNotifyValue(int ruleId, int orderId, int count, int trackEnd)
|
|
{
|
|
RuleId = ruleId;
|
|
OrderId = orderId;
|
|
Count = count;
|
|
TrackEnd = trackEnd;
|
|
}
|
|
|
|
public RuleNotifyValue(string notifyValue)
|
|
{
|
|
var values = notifyValue.Split(':');
|
|
RuleId = int.Parse(values[0]);
|
|
OrderId = int.Parse(values[1]);
|
|
Count = int.Parse(values[2]);
|
|
TrackEnd = int.Parse(values[3]);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{RuleId}:{OrderId}:{Count}:{TrackEnd}";
|
|
}
|
|
} |