|
|
@ -25,7 +25,7 @@ public class CancelState : IState
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_log.Info($"'goto cancel");
|
|
|
|
_log.Info($"'goto cancel");
|
|
|
|
machine.CancelFlag = false;
|
|
|
|
machine.CancelFlag = false;
|
|
|
|
if (machine.SwapOrderBatteryInfo.swapAmtOrder != null)
|
|
|
|
if (machine.SwapOrderBatteryInfo!=null && machine.SwapOrderBatteryInfo.swapAmtOrder != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
machine.SwapOrderBatteryInfo.swapAmtOrder.Status = (byte)InfoEnum.AmtOrderStatus.SwapFail;
|
|
|
|
machine.SwapOrderBatteryInfo.swapAmtOrder.Status = (byte)InfoEnum.AmtOrderStatus.SwapFail;
|
|
|
|
_swapAmtOrderRepository.Update(machine.SwapOrderBatteryInfo.swapAmtOrder);
|
|
|
|
_swapAmtOrderRepository.Update(machine.SwapOrderBatteryInfo.swapAmtOrder);
|
|
|
|