using Entity.DbModel.Station;
using SqlSugar;
namespace Entity.Api.Resp
{
///
///换电订单
///
public class SwapOrderResp
{
///
/// Desc:id
/// Default:
/// Nullable:False
///
public int Id { get; set; }
///
/// Desc:订单编号
/// Default:
/// Nullable:True
///
public string Sn { get; set; }
///
/// Desc:车牌号
/// Default:
/// Nullable:True
///
public string VehicleNo { get; set; }
///
/// Desc:车辆mac
/// Default:
/// Nullable:True
///
public string VehicleMac { get; set; }
///
/// Desc:车辆vin码
/// Default:
/// Nullable:True
///
public string VehicleVin { get; set; }
///
/// Desc:车辆进场时间
/// Default:
/// Nullable:True
///
public DateTime? VehicleEnterTime { get; set; }
///
/// Desc:车辆离场时间
/// Default:
/// Nullable:True
///
public DateTime? VehicleLeaveTime { get; set; }
///
/// Desc:换电开始时间
/// Default:
/// Nullable:True
///
public DateTime? SwapBeginTime { get; set; }
///
/// Desc:换电结束时间
/// Default:
/// Nullable:True
///
public DateTime? SwapEndTime { get; set; }
///
/// Desc:换电结果;0-未知;1-成功;2-失败
/// Default:0
/// Nullable:True
///
public int? SwapResult { get; set; }
///
/// Desc:失败原因
/// Default:
/// Nullable:True
///
public string FailReason { get; set; }
///
/// Desc:上传云平台状态;0-未上传;1-已上传
/// Default:0
/// Nullable:True
///
public int? CloudReportStatus { get; set; }
///
/// Desc:创建人
/// Default:
/// Nullable:True
///
public string CreatedBy { get; set; }
///
/// Desc:创建时间
/// Default:CURRENT_TIMESTAMP
/// Nullable:True
///
public DateTime? CreatedTime { get; set; }
///
/// Desc:更新人
/// Default:
/// Nullable:True
///
public string UpdatedBy { get; set; }
///
/// Desc:更新时间
/// Default:CURRENT_TIMESTAMP
/// Nullable:True
///
public DateTime? UpdatedTime { get; set; }
///
/// 云平台订单号
///
public string? CloudSn { get; set; }
///
/// 换电类型
///
public int? SwapWay { get; set; }
///
/// 上报次数
///
public int? ReportCloudNum { get; set; }
/////
///// 换电电池
/////
public List BatteryList { get; set; }
///
/// 换电小步
///
public List StepList { get; set; }
///
/// Desc:公司
/// Default:
/// Nullable:True
///
public string? Company {get;set;}
///
/// Desc:部门
/// Default:
/// Nullable:True
///
public string? Departments {get;set;}
///
/// 换电服务费用
///
public decimal? ServiceTotalFee { get; set; }
///
/// 电费
///
public decimal? ElectricityTotalFee { get; set; }
///
/// 附加费
///
public decimal? AppendTotalFee { get; set; }
///
/// 总费用(所有的总费用)
///
public decimal? TotalFee { get; set; }
///
/// 备注
///
///
public string? ManualStep { get; set; }
public string? Remark { get; set; }
public string StationNumber { get; set; }= "2号站";
///
/// Desc:换电用时
/// Default:
/// Nullable:
///
public string SwapDuration
{
get
{
if (!SwapBeginTime.HasValue || !SwapEndTime.HasValue)
{
return "未知";
}
TimeSpan duration = SwapEndTime.Value - SwapBeginTime.Value;
return duration.ToString("c");
}
}
///
/// Desc:换电仓位(取)
/// Default:
/// Nullable:True
///
public int? UpBatteryBinNo { get; set; }
///
/// Desc:电池编号(取)
/// Default:
/// Nullable:True
///
public string? UpBatteryNo { get; set; }
///
/// Desc:换池电量kWh(取)
/// Default:
/// Nullable:True
///
public string? UpBatteryElectricQuantity { get; set; }
public decimal? UpBatterySoc { get; set; }
///
/// Desc:soc(取)
/// Default:
/// Nullable:True
///
public string? UpBatterySocDto
{
get { return UpBatterySoc.HasValue ? $"{UpBatterySoc.Value.ToString("0")}" : null; }
}
///
/// Desc:换电仓位(存)
/// Default:
/// Nullable:True
///
public int? DownBatteryBinNo { get; set; }
///
/// Desc:电池编号(存)
/// Default:
/// Nullable:True
///
public string? DownBatteryNo { get; set; }
///
/// Desc:换池电量kwh(存)
/// Default:
/// Nullable:True
///
public string? DownBatteryElectricQuantity { get; set; }
public decimal? DownBatterySoc { get; set; }
///
/// Desc:soc(存)
/// Default:
/// Nullable:True
///
public string? DownBatterySocDto
{
get { return DownBatterySoc.HasValue ? $"{DownBatterySoc.Value.ToString("0")}" : null; }
}
///
/// Desc:电量差kwh
/// Default:
/// Nullable:True
///
public string? ElectricQuantity { get; set; }
}
}