|
|
@ -57,7 +57,8 @@ public abstract class CloudApi
|
|
|
|
/// <param name="rfidReadModel"></param>
|
|
|
|
/// <param name="rfidReadModel"></param>
|
|
|
|
/// <param name="swapOrder"></param>
|
|
|
|
/// <param name="swapOrder"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public static int UploadSwapOrder(SwapOrder swapOrder, int seq, SwapOrderBattery swapOrderBattery, int uploadType)
|
|
|
|
public static int UploadSwapOrder(SwapOrder swapOrder, int seq, SwapOrderBattery swapOrderBattery, int uploadType
|
|
|
|
|
|
|
|
,SwapOrderReportCloud orderReportCloud)
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UploadSwapOrder uploadSwapOrder = new()
|
|
|
|
UploadSwapOrder uploadSwapOrder = new()
|
|
|
@ -72,7 +73,7 @@ public abstract class CloudApi
|
|
|
|
dbid = swapOrderBattery.UpBatteryNo,
|
|
|
|
dbid = swapOrderBattery.UpBatteryNo,
|
|
|
|
deno = swapOrderBattery.UpBatteryBinNo,
|
|
|
|
deno = swapOrderBattery.UpBatteryBinNo,
|
|
|
|
dsoc = swapOrderBattery.UpBatterySoc.ToInt(),
|
|
|
|
dsoc = swapOrderBattery.UpBatterySoc.ToInt(),
|
|
|
|
// dsoe = swapOrderBattery.UpBatterySoe.ToInt(),
|
|
|
|
//dsoe = swapOrderBattery.UpBatterySoe.ToInt(),
|
|
|
|
et = swapOrder.SwapEndTime,
|
|
|
|
et = swapOrder.SwapEndTime,
|
|
|
|
od = 0,
|
|
|
|
od = 0,
|
|
|
|
ot = swapOrder.VehicleLeaveTime,
|
|
|
|
ot = swapOrder.VehicleLeaveTime,
|
|
|
@ -86,6 +87,7 @@ public abstract class CloudApi
|
|
|
|
vin = swapOrder.VehicleVin,
|
|
|
|
vin = swapOrder.VehicleVin,
|
|
|
|
wt = new TimeSpan((swapOrder.SwapEndTime.ToDateTime().Ticks - swapOrder.SwapBeginTime.ToDateTime().Ticks))
|
|
|
|
wt = new TimeSpan((swapOrder.SwapEndTime.ToDateTime().Ticks - swapOrder.SwapBeginTime.ToDateTime().Ticks))
|
|
|
|
.TotalSeconds.ToInt(),
|
|
|
|
.TotalSeconds.ToInt(),
|
|
|
|
|
|
|
|
vtm=orderReportCloud.Vtm,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Log.Info(
|
|
|
|
Log.Info(
|
|
|
|
$" CloudApi UploadSwapOrder seq={seq} SendUploadPowerChangeOrder param={JsonConvert.SerializeObject(uploadSwapOrder)}");
|
|
|
|
$" CloudApi UploadSwapOrder seq={seq} SendUploadPowerChangeOrder param={JsonConvert.SerializeObject(uploadSwapOrder)}");
|
|
|
|