|
|
@ -50,7 +50,7 @@ public class CommonMgr
|
|
|
|
swapOrder.SwapWay = (int)StationConstant.StationWay.Auto;
|
|
|
|
swapOrder.SwapWay = (int)StationConstant.StationWay.Auto;
|
|
|
|
swapOrder.CloudReportStatus = 0;
|
|
|
|
swapOrder.CloudReportStatus = 0;
|
|
|
|
swapOrder.SwapWay = 1;
|
|
|
|
swapOrder.SwapWay = 1;
|
|
|
|
swapOrder.CreatedTime=DateTime.Now;
|
|
|
|
swapOrder.CreatedTime = DateTime.Now;
|
|
|
|
_swapOrderRepository.Insert(swapOrder);
|
|
|
|
_swapOrderRepository.Insert(swapOrder);
|
|
|
|
return swapOrder;
|
|
|
|
return swapOrder;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -69,7 +69,7 @@ public class CommonMgr
|
|
|
|
UpBatteryBinNo = int.Parse(UpBin.No),
|
|
|
|
UpBatteryBinNo = int.Parse(UpBin.No),
|
|
|
|
DownBatteryBinNo = int.Parse(InBin.No),
|
|
|
|
DownBatteryBinNo = int.Parse(InBin.No),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swapOrderBattery= _swapOrderBatteryRepository.Insert(swapOrderBattery);
|
|
|
|
swapOrderBattery = _swapOrderBatteryRepository.Insert(swapOrderBattery);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -171,7 +171,7 @@ public class CommonMgr
|
|
|
|
{
|
|
|
|
{
|
|
|
|
List<BinInfo> list =
|
|
|
|
List<BinInfo> list =
|
|
|
|
_binInfoRepository.QueryListByClause(i =>
|
|
|
|
_binInfoRepository.QueryListByClause(i =>
|
|
|
|
i.CacheBinFlag==0 &&
|
|
|
|
i.CacheBinFlag == 0 &&
|
|
|
|
i.Status == 1 && i.AmtLock == (int)InfoEnum.AmtBatLockStatus.UnLock
|
|
|
|
i.Status == 1 && i.AmtLock == (int)InfoEnum.AmtBatLockStatus.UnLock
|
|
|
|
&& i.Exists == 0);
|
|
|
|
&& i.Exists == 0);
|
|
|
|
|
|
|
|
|
|
|
@ -230,18 +230,19 @@ public class CommonMgr
|
|
|
|
inBinInfo.Soe = -1;
|
|
|
|
inBinInfo.Soe = -1;
|
|
|
|
inBinInfo.BatteryNo = "-1";
|
|
|
|
inBinInfo.BatteryNo = "-1";
|
|
|
|
//修改入仓顺序
|
|
|
|
//修改入仓顺序
|
|
|
|
BinInfo binInfo = _binInfoRepository.QueryListByClause(i=>i.BatteryEnterSeq!=null,"battery_enter_seq desc").First();
|
|
|
|
BinInfo binInfo = _binInfoRepository
|
|
|
|
|
|
|
|
.QueryListByClause(i => i.BatteryEnterSeq != null, "battery_enter_seq desc").First();
|
|
|
|
inBinInfo.BatteryEnterSeq = binInfo.BatteryEnterSeq + 1;
|
|
|
|
inBinInfo.BatteryEnterSeq = binInfo.BatteryEnterSeq + 1;
|
|
|
|
|
|
|
|
inBinInfo.InTime = DateTime.Now;
|
|
|
|
_binInfoRepository.Update(inBinInfo);
|
|
|
|
_binInfoRepository.Update(inBinInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var upBinInfo = machineSwapOrderBatteryInfo.UpBinInfo;
|
|
|
|
var upBinInfo = machineSwapOrderBatteryInfo.UpBinInfo;
|
|
|
|
upBinInfo.Soc = -1;
|
|
|
|
upBinInfo.Soc = -1;
|
|
|
|
upBinInfo.Soe = -1;
|
|
|
|
upBinInfo.Soe = -1;
|
|
|
|
upBinInfo.BatteryNo = "-1";
|
|
|
|
upBinInfo.BatteryNo = "-1";
|
|
|
|
_binInfoRepository.Update(upBinInfo);
|
|
|
|
_binInfoRepository.Update(upBinInfo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -260,5 +261,4 @@ public class CommonMgr
|
|
|
|
Vin = machineSwapOrder.VehicleVin
|
|
|
|
Vin = machineSwapOrder.VehicleVin
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|