|
|
@ -20,6 +20,9 @@ public class ElecPriceModelVersionService : BaseServices<ElecPriceModelVersion>
|
|
|
|
public async Task<int> GetNowVersion()
|
|
|
|
public async Task<int> GetNowVersion()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ElecPriceModelVersion elecPriceModelVersion =await _elecPriceModelVersionRepository.QueryByClauseAsync(u => u.EndTime > DateTime.Now);
|
|
|
|
ElecPriceModelVersion elecPriceModelVersion =await _elecPriceModelVersionRepository.QueryByClauseAsync(u => u.EndTime > DateTime.Now);
|
|
|
|
return elecPriceModelVersion.Version;
|
|
|
|
if (elecPriceModelVersion != null)
|
|
|
|
|
|
|
|
return elecPriceModelVersion.Version;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|