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