|
|
|
@ -22,6 +22,8 @@ public class CommonMgr
|
|
|
|
|
public SwapAmtOrderRepository _amtOrderRepository { get; set; }
|
|
|
|
|
public SwapOrderBatteryRepository _swapOrderBatteryRepository { get; set; }
|
|
|
|
|
|
|
|
|
|
public SwapOrderReportCloudRepository _swapOrderReportCloudRepository { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 新增小步状态
|
|
|
|
|
/// </summary>
|
|
|
|
@ -234,4 +236,20 @@ public class CommonMgr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 换电完成新增上报云平台记录
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="machine"></param>
|
|
|
|
|
public void InsertCloudReportForSwapSuccess(SwappingStateMachine machine)
|
|
|
|
|
{
|
|
|
|
|
SwapOrder? machineSwapOrder = machine.SwapOrder;
|
|
|
|
|
_swapOrderReportCloudRepository.Insert(new SwapOrderReportCloud()
|
|
|
|
|
{
|
|
|
|
|
SwapOrderSn = machineSwapOrder.Sn,
|
|
|
|
|
SwapOrderId = machineSwapOrder.Id,
|
|
|
|
|
CloudReportStatus = 0,
|
|
|
|
|
Vin = machineSwapOrder.VehicleVin
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|