|
|
|
@ -57,7 +57,8 @@ public abstract class CloudApi
|
|
|
|
|
/// <param name="rfidReadModel"></param>
|
|
|
|
|
/// <param name="swapOrder"></param>
|
|
|
|
|
/// <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()
|
|
|
|
@ -86,6 +87,7 @@ public abstract class CloudApi
|
|
|
|
|
vin = swapOrder.VehicleVin,
|
|
|
|
|
wt = new TimeSpan((swapOrder.SwapEndTime.ToDateTime().Ticks - swapOrder.SwapBeginTime.ToDateTime().Ticks))
|
|
|
|
|
.TotalSeconds.ToInt(),
|
|
|
|
|
vtm=orderReportCloud.Vtm,
|
|
|
|
|
};
|
|
|
|
|
Log.Info(
|
|
|
|
|
$" CloudApi UploadSwapOrder seq={seq} SendUploadPowerChangeOrder param={JsonConvert.SerializeObject(uploadSwapOrder)}");
|
|
|
|
|