人工取消bug修改

zw
lxw 6 months ago
parent b1c3f421e7
commit c5cafea201

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

Loading…
Cancel
Save