|
|
|
@ -35,7 +35,8 @@ public class SwapOrderMgr
|
|
|
|
|
|
|
|
|
|
List<SwapOrderBattery> batterys =
|
|
|
|
|
_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)
|
|
|
|
|
{
|
|
|
|
@ -59,7 +60,12 @@ public class SwapOrderMgr
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (null == swapOrderBattery.DownBatteryNo)
|
|
|
|
|
|
|
|
|
|
if (null == swapOrderBattery.DownBatteryNo || "-1".Equals(swapOrderBattery.DownBatteryNo))
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if (null == swapOrderBattery.DownBatterySoc || -1==swapOrderBattery.DownBatterySoc)
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|