|
|
@ -22,6 +22,8 @@ public class CommonMgr
|
|
|
|
public SwapAmtOrderRepository _amtOrderRepository { get; set; }
|
|
|
|
public SwapAmtOrderRepository _amtOrderRepository { get; set; }
|
|
|
|
public SwapOrderBatteryRepository _swapOrderBatteryRepository { get; set; }
|
|
|
|
public SwapOrderBatteryRepository _swapOrderBatteryRepository { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public SwapOrderReportCloudRepository _swapOrderReportCloudRepository { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 新增小步状态
|
|
|
|
/// 新增小步状态
|
|
|
|
/// </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
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|