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