main
xiaoguo 7 months ago
parent 0a08f1e34a
commit 50873fce30

@ -79,7 +79,7 @@ namespace GuideScreen.Common.Services
/// <typeparam name="T">返回类型</typeparam>
/// <param name="address">点位地址</param>
/// <returns></returns>
T ReadValue<T>(string address) where T:struct;
T ReadValue<T>(string address) where T : struct;
/// <summary>
/// 写入点位内容

@ -42,6 +42,6 @@ namespace GuideScreen.Common.Services
/// </summary>
/// <param name="entity"></param>
void UpdateSystemConfig(SystemConfigModel model);
}
}

@ -193,7 +193,7 @@ namespace GuideScreen.Common.Services.Impl
/// 获取厕位使用月统计
/// </summary>
/// <returns></returns>
public IDictionary<string, decimal> ToiletMonthTotal()
public IDictionary<string, decimal> ToiletMonthTotal()
{
var ret = this.deviceRecordRepository.ToiletMonthTotal();
@ -206,7 +206,7 @@ namespace GuideScreen.Common.Services.Impl
/// </summary>
/// <returns></returns>
public IDictionary<string, decimal> ElectricityMonthTotal()
public IDictionary<string, decimal> ElectricityMonthTotal()
{
var ret = this.deviceRecordRepository.ElectricityMonthTotal();
@ -217,7 +217,7 @@ namespace GuideScreen.Common.Services.Impl
/// 获取电水月统计
/// </summary>
/// <returns></returns>
public IDictionary<string, decimal> WaterMonthTotal()
public IDictionary<string, decimal> WaterMonthTotal()
{
var ret = this.deviceRecordRepository.WaterMonthTotal();
@ -228,7 +228,7 @@ namespace GuideScreen.Common.Services.Impl
/// 获取总用水量
/// </summary>
/// <returns></returns>
public decimal WaterTotal()
public decimal WaterTotal()
{
var ret = this.deviceRecordRepository.WaterTotal();

@ -329,7 +329,7 @@ namespace GuideScreen.Common.Services.Impl
//报警设备IP地址
string strIP = Encoding.UTF8.GetString(pAlarmer.sDeviceIP).TrimEnd('\0');
DateTime.TryParse(strStartTime,out var begDate);
DateTime.TryParse(strStartTime, out var begDate);
DateTime.TryParse(strEndTime, out var endDate);
var model = new PassengerFlowStatisticsModel
{

@ -39,7 +39,7 @@ namespace GuideScreen.Common.Services.Impl
/// <param name="pageSize"></param>
/// <param name="pageIndex"></param>
/// <returns></returns>
public PageModel<List<SystemConfigModel>> GetSystemConfigList(string configName, int pageSize, int pageIndex)
public PageModel<List<SystemConfigModel>> GetSystemConfigList(string configName, int pageSize, int pageIndex)
{
return _systemRepository.GetSystemConfigList(configName, pageSize, pageIndex);
}

@ -15,7 +15,7 @@ namespace GuideScreen.Common.Services.Impl
/// <summary>
/// 获取气象信息 (基于和风天气开发服务)
/// </summary>
internal class WeatherServiceByQweather: IWeatherService
internal class WeatherServiceByQweather : IWeatherService
{
///和风天气开发服务
//获取城市信息 https://geoapi.qweather.com/v2/city/lookup?location=zhuzhou&adm=hunan&key=3ac6b1fdfcc74db7a1e9b94fc5647361
@ -26,7 +26,7 @@ namespace GuideScreen.Common.Services.Impl
/// <param name="location">城市编号</param>
/// <param name="key"></param>
/// <returns></returns>
public async Task<WeatherModel> GetWeatherNowAsync(string location,string key)
public async Task<WeatherModel> GetWeatherNowAsync(string location, string key)
{
var str = await WebClientHelper.GetWebClientAsync($"https://devapi.qweather.com/v7/weather/now?location={location}&lang=zh&key={key}");
var weatherModel = JsonConvert.DeserializeObject<WeatherModel>(str);

@ -31,7 +31,7 @@ namespace GuideScreen.Common.Services.Models
/// <summary>
/// 总行数
/// </summary>
public int TotalRows { get;set; }
public int TotalRows { get; set; }
/// <summary>
/// 查询参数

@ -8,7 +8,7 @@ namespace GuideScreen.Common.Models
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public partial class WeatherModel
{
[JsonProperty("code")]

Loading…
Cancel
Save