|
|
|
@ -6,7 +6,7 @@ namespace Entity.Dto;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 换电订单导出
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExcelExporter(Name = "换电订单", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
|
|
|
|
|
[ExcelExporter(Name = "2号站换电记录", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
|
|
|
|
|
public class SwapOrderDto
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -41,23 +41,23 @@ public class SwapOrderDto
|
|
|
|
|
[ExporterHeader(DisplayName = "车辆vin码", IsBold = true)]
|
|
|
|
|
public string VehicleVin { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:车辆进场时间
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExporterHeader(DisplayName = "车辆进场时间", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
|
|
|
|
|
AutoCenterColumn = true)]
|
|
|
|
|
public DateTime? VehicleEnterTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:车辆离场时间
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExporterHeader(DisplayName = "车辆离场时间", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
|
|
|
|
|
AutoCenterColumn = true)]
|
|
|
|
|
public DateTime? VehicleLeaveTime { get; set; }
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// Desc:车辆进场时间
|
|
|
|
|
///// Default:
|
|
|
|
|
///// Nullable:True
|
|
|
|
|
///// </summary>
|
|
|
|
|
//[ExporterHeader(DisplayName = "车辆进场时间", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
|
|
|
|
|
// AutoCenterColumn = true)]
|
|
|
|
|
//public DateTime? VehicleEnterTime { get; set; }
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// Desc:车辆离场时间
|
|
|
|
|
///// Default:
|
|
|
|
|
///// Nullable:True
|
|
|
|
|
///// </summary>
|
|
|
|
|
//[ExporterHeader(DisplayName = "车辆离场时间", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
|
|
|
|
|
// AutoCenterColumn = true)]
|
|
|
|
|
//public DateTime? VehicleLeaveTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:换电开始时间
|
|
|
|
@ -76,6 +76,26 @@ public class SwapOrderDto
|
|
|
|
|
[ExporterHeader(DisplayName = "换电结束时间", Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
|
|
|
|
|
public DateTime? SwapEndTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 换电时间(换电结束时间与换电开始时间之间的差值)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExporterHeader(DisplayName = "换电时间", Width = 30, Format = "c")]
|
|
|
|
|
public string SwapDuration
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (!SwapBeginTime.HasValue || !SwapEndTime.HasValue)
|
|
|
|
|
{
|
|
|
|
|
return "未知";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TimeSpan duration = SwapEndTime.Value - SwapBeginTime.Value;
|
|
|
|
|
return duration.ToString("c");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:换电结果;0-未知;1-成功;2-失败
|
|
|
|
|
/// Default:0
|
|
|
|
@ -114,6 +134,24 @@ public class SwapOrderDto
|
|
|
|
|
public string FailReason { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:换电类型:;1自动换电;2手动换电
|
|
|
|
|
/// Default:0
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExporterHeader(DisplayName = "换电类型", IsBold = true)]
|
|
|
|
|
public string SwapWayDisplay
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return SwapWay switch
|
|
|
|
|
{
|
|
|
|
|
1 => "自动换电",
|
|
|
|
|
2 => "手动换电",
|
|
|
|
|
_ => "未知"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:换电类型:;1自动换电;2手动换电
|
|
|
|
|
/// Default:0
|
|
|
|
@ -239,24 +277,6 @@ public class SwapOrderDto
|
|
|
|
|
[ExporterHeader(DisplayName = "云平台订单号", IsBold = true)]
|
|
|
|
|
public string? CloudSn { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:换电类型:;1自动换电;2手动换电
|
|
|
|
|
/// Default:0
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ExporterHeader(DisplayName = "换电类型", IsBold = true)]
|
|
|
|
|
public string SwapWayDisplay
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return SwapWay switch
|
|
|
|
|
{
|
|
|
|
|
1 => "自动换电",
|
|
|
|
|
2 => "手动换电",
|
|
|
|
|
_ => "未知"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|