|
|
@ -4,6 +4,7 @@ using Entity.DbModel.Station;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using log4net;
|
|
|
|
using log4net;
|
|
|
|
using Repository.Station;
|
|
|
|
using Repository.Station;
|
|
|
|
|
|
|
|
using Service.Execute.Utils;
|
|
|
|
using Service.Mgr;
|
|
|
|
using Service.Mgr;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Service.Execute.Step;
|
|
|
|
namespace Service.Execute.Step;
|
|
|
@ -13,11 +14,11 @@ namespace Service.Execute.Step;
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class ManualSuccState : IState
|
|
|
|
public class ManualSuccState : IState
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly SwapOrderRepository _swapOrderRepository = AppInfo.Container.Resolve<SwapOrderRepository>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private readonly SwapAmtOrderRepository _swapAmtOrderRepository =
|
|
|
|
private readonly SwapAmtOrderRepository _swapAmtOrderRepository =
|
|
|
|
AppInfo.Container.Resolve<SwapAmtOrderRepository>();
|
|
|
|
AppInfo.Container.Resolve<SwapAmtOrderRepository>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private readonly CommonMgr _CommonMgr = AppInfo.Container.Resolve<CommonMgr>();
|
|
|
|
private static readonly ILog _log = LogManager.GetLogger(typeof(CancelState));
|
|
|
|
private static readonly ILog _log = LogManager.GetLogger(typeof(CancelState));
|
|
|
|
private static readonly ManualOperationRecordRepository _manualOperationRecordRepository =
|
|
|
|
private static readonly ManualOperationRecordRepository _manualOperationRecordRepository =
|
|
|
|
AppInfo.Container.Resolve<ManualOperationRecordRepository>();
|
|
|
|
AppInfo.Container.Resolve<ManualOperationRecordRepository>();
|
|
|
@ -37,7 +38,7 @@ public class ManualSuccState : IState
|
|
|
|
{
|
|
|
|
{
|
|
|
|
machine.SwapOrder.SwapResult = (byte)InfoEnum.SwapOrderResult.Success;
|
|
|
|
machine.SwapOrder.SwapResult = (byte)InfoEnum.SwapOrderResult.Success;
|
|
|
|
machine.SwapOrder.VehicleLeaveTime = DateTime.Now;
|
|
|
|
machine.SwapOrder.VehicleLeaveTime = DateTime.Now;
|
|
|
|
_swapOrderRepository.Update(machine.SwapOrder);
|
|
|
|
_CommonMgr.UpdateSwapOrder(machine);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_manualOperationRecordRepository.Insert(new ManualOperationRecord()
|
|
|
|
_manualOperationRecordRepository.Insert(new ManualOperationRecord()
|
|
|
|