现场更改提交

master
CZ 5 months ago
parent 4fd7cac812
commit ba8a828e6d

@ -51,7 +51,7 @@ public class CarPrepareState : IState
//TBox连接 //TBox连接
if (StaticStationInfo.TboxStateConnect) if (StaticStationInfo.TboxStateConnect)
{ {
InvokeStatus tboxConnect = CheckTBoxConnectFlag(machine); InvokeStatus tboxConnect = TboxConnect(machine);
if (tboxConnect != InvokeStatus.Done) if (tboxConnect != InvokeStatus.Done)
{ {
return SwappingStateMachine.ReturnWithInvokeErr(tboxConnect, ExceptionReason.None); return SwappingStateMachine.ReturnWithInvokeErr(tboxConnect, ExceptionReason.None);

@ -35,7 +35,8 @@ public class SwapOrderMgr
List<SwapOrderBattery> batterys = List<SwapOrderBattery> batterys =
_swapOrderBatteryRepository.QueryListByClause(i => _swapOrderBatteryRepository.QueryListByClause(i =>
swapOrderSn.Contains(i.SwapOrderSn) && i.DownBatteryNo != null); swapOrderSn.Contains(i.SwapOrderSn) && i.DownBatteryNo != null && i.DownBatteryNo!="-1"
&& i.DownBatterySoc!=-1 && i.DownBatterySoc!=null);
if (batterys.Count <= 0) if (batterys.Count <= 0)
{ {
@ -59,7 +60,12 @@ public class SwapOrderMgr
continue; continue;
} }
if (null == swapOrderBattery.DownBatteryNo)
if (null == swapOrderBattery.DownBatteryNo || "-1".Equals(swapOrderBattery.DownBatteryNo))
{
continue;
}
if (null == swapOrderBattery.DownBatterySoc || -1==swapOrderBattery.DownBatterySoc)
{ {
continue; continue;
} }

@ -39,7 +39,7 @@ public class UpdateDownBatteryInfoTask : ITask
{ {
List<SwapOrderBattery> batterys = List<SwapOrderBattery> batterys =
_swapOrderBatteryRepository.QueryListByClause( _swapOrderBatteryRepository.QueryListByClause(
i => i.DownBatteryNo == null && i.DownBatteryBinNo != null); i => (i.DownBatteryNo == null || i.DownBatterySoc<0) && i.DownBatteryBinNo != null);
if (batterys.Count <= 0) if (batterys.Count <= 0)

Loading…
Cancel
Save