满足换电次数修改

master
xjl 5 months ago
parent 89282bd2d1
commit be6878d11b

@ -153,7 +153,7 @@ public class ChargerService
if (binInfos.Count > 0) if (binInfos.Count > 0)
batteryStatusInfoResp.btyTotalCount = binInfos.Count(); batteryStatusInfoResp.btyTotalCount = binInfos.Count();
List<BinInfo> canSwapCounts = BinInfoRepository.QueryListByClause(i => List<BinInfo> canSwapCounts = BinInfoRepository.QueryListByClause(i =>
i.Exists == 1 && i.Status == 1 && i.Soc > Convert.ToDecimal(StaticStationInfo.SwapSoc) && i.ChargeStatus!=1); i.Exists == 1 && i.Status == 1 && i.Soc >= Convert.ToDecimal(StaticStationInfo.SwapSoc) && i.ChargeStatus!=1);
if (canSwapCounts.Count > 0) if (canSwapCounts.Count > 0)
batteryStatusInfoResp.canSwapCount = canSwapCounts.Count(); batteryStatusInfoResp.canSwapCount = canSwapCounts.Count();
List<BinInfo> chargingCounts = List<BinInfo> chargingCounts =

Loading…
Cancel
Save