|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
|
using Entity.Dto.Resp;
|
|
|
|
|
using HybirdFrameworkCore.Autofac.Attribute;
|
|
|
|
|
using HybirdFrameworkCore.Entity;
|
|
|
|
@ -81,7 +82,7 @@ public class ChargerService
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public Result<bool> DistributeElecPriceForCharge(int version)
|
|
|
|
|
{
|
|
|
|
|
Dictionary<string,ChargerClient> chargerClients = ClientMgr.Dictionary;
|
|
|
|
|
ConcurrentDictionary<string,ChargerClient> chargerClients = ClientMgr.Dictionary;
|
|
|
|
|
if (chargerClients.Values.Count <= 0)
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Fail();
|
|
|
|
|