diff --git a/DataServer/BLL/device_host.cs b/DataServer/BLL/host_parameter.cs similarity index 79% rename from DataServer/BLL/device_host.cs rename to DataServer/BLL/host_parameter.cs index dbd6123..f6b9ff3 100644 --- a/DataServer/BLL/device_host.cs +++ b/DataServer/BLL/host_parameter.cs @@ -1,12 +1,12 @@ /** 版本信息模板在安装目录下,可自行修改。 -* device_host.cs +* host_parameter.cs * * 功 能: N/A -* 类 名: device_host +* 类 名: host_parameter * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -* V0.01 2024/2/1 10:18:14 N/A 初版 +* V0.01 2024/2/1 13:22:21 N/A 初版 * * Copyright (c) 2012 Maticsoft Corporation. All rights reserved. *┌──────────────────────────────────┐ @@ -22,12 +22,12 @@ using DataServer.Model; namespace DataServer.BLL { /// - /// device_host + /// host_parameter /// - public partial class device_host + public partial class host_parameter { - private readonly DataServer.DAL.device_host dal=new DataServer.DAL.device_host(); - public device_host() + private readonly DataServer.DAL.host_parameter dal=new DataServer.DAL.host_parameter(); + public host_parameter() {} #region BasicMethod /// @@ -41,7 +41,7 @@ namespace DataServer.BLL /// /// 增加一条数据 /// - public bool Add(DataServer.Model.device_host model) + public bool Add(DataServer.Model.host_parameter model) { return dal.Add(model); } @@ -49,7 +49,7 @@ namespace DataServer.BLL /// /// 更新一条数据 /// - public bool Update(DataServer.Model.device_host model) + public bool Update(DataServer.Model.host_parameter model) { return dal.Update(model); } @@ -73,7 +73,7 @@ namespace DataServer.BLL /// /// 得到一个对象实体 /// - public DataServer.Model.device_host GetModel(string HostId) + public DataServer.Model.host_parameter GetModel(string HostId) { return dal.GetModel(HostId); @@ -82,10 +82,10 @@ namespace DataServer.BLL /// /// 得到一个对象实体,从缓存中 /// - public DataServer.Model.device_host GetModelByCache(string HostId) + public DataServer.Model.host_parameter GetModelByCache(string HostId) { - string CacheKey = "device_hostModel-" + HostId; + string CacheKey = "host_parameterModel-" + HostId; object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey); if (objModel == null) { @@ -100,7 +100,7 @@ namespace DataServer.BLL } catch{} } - return (DataServer.Model.device_host)objModel; + return (DataServer.Model.host_parameter)objModel; } /// @@ -113,7 +113,7 @@ namespace DataServer.BLL /// /// 获得数据列表 /// - public List GetModelList(string strWhere) + public List GetModelList(string strWhere) { DataSet ds = dal.GetList(strWhere); return DataTableToList(ds.Tables[0]); @@ -121,13 +121,13 @@ namespace DataServer.BLL /// /// 获得数据列表 /// - public List DataTableToList(DataTable dt) + public List DataTableToList(DataTable dt) { - List modelList = new List(); + List modelList = new List(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { - DataServer.Model.device_host model; + DataServer.Model.host_parameter model; for (int n = 0; n < rowsCount; n++) { model = dal.DataRowToModel(dt.Rows[n]); diff --git a/DataServer/DAL/device_host.cs b/DataServer/DAL/host_parameter.cs similarity index 90% rename from DataServer/DAL/device_host.cs rename to DataServer/DAL/host_parameter.cs index 72d8ddc..c42f81c 100644 --- a/DataServer/DAL/device_host.cs +++ b/DataServer/DAL/host_parameter.cs @@ -1,12 +1,12 @@ /** 版本信息模板在安装目录下,可自行修改。 -* device_host.cs +* host_parameter.cs * * 功 能: N/A -* 类 名: device_host +* 类 名: host_parameter * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -* V0.01 2024/2/1 10:18:14 N/A 初版 +* V0.01 2024/2/1 13:22:21 N/A 初版 * * Copyright (c) 2012 Maticsoft Corporation. All rights reserved. *┌──────────────────────────────────┐ @@ -22,11 +22,11 @@ using Maticsoft.DBUtility;//Please add references namespace DataServer.DAL { /// - /// 数据访问类:device_host + /// 数据访问类:host_parameter /// - public partial class device_host + public partial class host_parameter { - public device_host() + public host_parameter() {} #region BasicMethod @@ -36,7 +36,7 @@ namespace DataServer.DAL public bool Exists(string HostId) { StringBuilder strSql=new StringBuilder(); - strSql.Append("select count(1) from device_host"); + strSql.Append("select count(1) from host_parameter"); strSql.Append(" where HostId=@HostId "); MySqlParameter[] parameters = { new MySqlParameter("@HostId", MySqlDbType.VarChar,255) }; @@ -49,10 +49,10 @@ namespace DataServer.DAL /// /// 增加一条数据 /// - public bool Add(DataServer.Model.device_host model) + public bool Add(DataServer.Model.host_parameter model) { StringBuilder strSql=new StringBuilder(); - strSql.Append("insert into device_host("); + strSql.Append("insert into host_parameter("); strSql.Append("HostId,HostName,DeviceName,DeviceValue,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5)"); strSql.Append(" values ("); strSql.Append("@HostId,@HostName,@DeviceName,@DeviceValue,@CreateTime,@EntireTime,@Reserve1,@Reserve2,@Reserve3,@Reserve4,@Reserve5)"); @@ -93,10 +93,10 @@ namespace DataServer.DAL /// /// 更新一条数据 /// - public bool Update(DataServer.Model.device_host model) + public bool Update(DataServer.Model.host_parameter model) { StringBuilder strSql=new StringBuilder(); - strSql.Append("update device_host set "); + strSql.Append("update host_parameter set "); strSql.Append("HostName=@HostName,"); strSql.Append("DeviceName=@DeviceName,"); strSql.Append("DeviceValue=@DeviceValue,"); @@ -150,7 +150,7 @@ namespace DataServer.DAL { StringBuilder strSql=new StringBuilder(); - strSql.Append("delete from device_host "); + strSql.Append("delete from host_parameter "); strSql.Append(" where HostId=@HostId "); MySqlParameter[] parameters = { new MySqlParameter("@HostId", MySqlDbType.VarChar,255) }; @@ -172,7 +172,7 @@ namespace DataServer.DAL public bool DeleteList(string HostIdlist ) { StringBuilder strSql=new StringBuilder(); - strSql.Append("delete from device_host "); + strSql.Append("delete from host_parameter "); strSql.Append(" where HostId in ("+HostIdlist + ") "); int rows=DbHelperMySQL.ExecuteSql(strSql.ToString()); if (rows > 0) @@ -189,17 +189,17 @@ namespace DataServer.DAL /// /// 得到一个对象实体 /// - public DataServer.Model.device_host GetModel(string HostId) + public DataServer.Model.host_parameter GetModel(string HostId) { StringBuilder strSql=new StringBuilder(); - strSql.Append("select HostId,HostName,DeviceName,DeviceValue,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from device_host "); + strSql.Append("select HostId,HostName,DeviceName,DeviceValue,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 from host_parameter "); strSql.Append(" where HostId=@HostId "); MySqlParameter[] parameters = { new MySqlParameter("@HostId", MySqlDbType.VarChar,255) }; parameters[0].Value = HostId; - DataServer.Model.device_host model=new DataServer.Model.device_host(); + DataServer.Model.host_parameter model=new DataServer.Model.host_parameter(); DataSet ds=DbHelperMySQL.Query(strSql.ToString(),parameters); if(ds.Tables[0].Rows.Count>0) { @@ -215,9 +215,9 @@ namespace DataServer.DAL /// /// 得到一个对象实体 /// - public DataServer.Model.device_host DataRowToModel(DataRow row) + public DataServer.Model.host_parameter DataRowToModel(DataRow row) { - DataServer.Model.device_host model=new DataServer.Model.device_host(); + DataServer.Model.host_parameter model=new DataServer.Model.host_parameter(); if (row != null) { if(row["HostId"]!=null) @@ -275,7 +275,7 @@ namespace DataServer.DAL { StringBuilder strSql=new StringBuilder(); strSql.Append("select HostId,HostName,DeviceName,DeviceValue,CreateTime,EntireTime,Reserve1,Reserve2,Reserve3,Reserve4,Reserve5 "); - strSql.Append(" FROM device_host "); + strSql.Append(" FROM host_parameter "); if(strWhere.Trim()!="") { strSql.Append(" where "+strWhere); @@ -289,7 +289,7 @@ namespace DataServer.DAL public int GetRecordCount(string strWhere) { StringBuilder strSql=new StringBuilder(); - strSql.Append("select count(1) FROM device_host "); + strSql.Append("select count(1) FROM host_parameter "); if(strWhere.Trim()!="") { strSql.Append(" where "+strWhere); @@ -320,7 +320,7 @@ namespace DataServer.DAL { strSql.Append("order by T.HostId desc"); } - strSql.Append(")AS Row, T.* from device_host T "); + strSql.Append(")AS Row, T.* from host_parameter T "); if (!string.IsNullOrEmpty(strWhere.Trim())) { strSql.Append(" WHERE " + strWhere); @@ -345,7 +345,7 @@ namespace DataServer.DAL new MySqlParameter("@OrderType", MySqlDbType.Bit), new MySqlParameter("@strWhere", MySqlDbType.VarChar,1000), }; - parameters[0].Value = "device_host"; + parameters[0].Value = "host_parameter"; parameters[1].Value = "HostId"; parameters[2].Value = PageSize; parameters[3].Value = PageIndex; diff --git a/DataServer/DataServer.csproj b/DataServer/DataServer.csproj index b6f77e4..0f72e22 100644 --- a/DataServer/DataServer.csproj +++ b/DataServer/DataServer.csproj @@ -105,7 +105,6 @@ - @@ -114,13 +113,13 @@ + - @@ -129,12 +128,12 @@ + - @@ -144,6 +143,7 @@ + @@ -151,6 +151,5 @@ - \ No newline at end of file diff --git a/DataServer/Model/device_host.cs b/DataServer/Model/host_parameter.cs similarity index 91% rename from DataServer/Model/device_host.cs rename to DataServer/Model/host_parameter.cs index 4146f22..8649e21 100644 --- a/DataServer/Model/device_host.cs +++ b/DataServer/Model/host_parameter.cs @@ -1,12 +1,12 @@ /** 版本信息模板在安装目录下,可自行修改。 -* device_host.cs +* host_parameter.cs * * 功 能: N/A -* 类 名: device_host +* 类 名: host_parameter * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── -* V0.01 2024/2/1 10:18:14 N/A 初版 +* V0.01 2024/2/1 13:22:21 N/A 初版 * * Copyright (c) 2012 Maticsoft Corporation. All rights reserved. *┌──────────────────────────────────┐ @@ -18,12 +18,12 @@ using System; namespace DataServer.Model { /// - /// device_host:实体类(属性说明自动提取数据库字段的描述信息) + /// host_parameter:实体类(属性说明自动提取数据库字段的描述信息) /// [Serializable] - public partial class device_host + public partial class host_parameter { - public device_host() + public host_parameter() {} #region Model private string _hostid; diff --git a/DataServer/bin/Debug/DataServer.pdb b/DataServer/bin/Debug/DataServer.pdb index c7720b8..0aed620 100644 Binary files a/DataServer/bin/Debug/DataServer.pdb and b/DataServer/bin/Debug/DataServer.pdb differ diff --git a/DataServer/obj/Debug/DataServer.csproj.CoreCompileInputs.cache b/DataServer/obj/Debug/DataServer.csproj.CoreCompileInputs.cache index 888f47f..3cca9a3 100644 --- a/DataServer/obj/Debug/DataServer.csproj.CoreCompileInputs.cache +++ b/DataServer/obj/Debug/DataServer.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -098959a00783799e26d9b78bc1dbc8faad3ea038 +7269330a6857a5dcb296b901e403539b3642fe2e diff --git a/DataServer/obj/Debug/DataServer.dll b/DataServer/obj/Debug/DataServer.dll index 4ef7fc2..c4ed208 100644 Binary files a/DataServer/obj/Debug/DataServer.dll and b/DataServer/obj/Debug/DataServer.dll differ diff --git a/DataServer/obj/Debug/DataServer.pdb b/DataServer/obj/Debug/DataServer.pdb index c7720b8..0aed620 100644 Binary files a/DataServer/obj/Debug/DataServer.pdb and b/DataServer/obj/Debug/DataServer.pdb differ diff --git a/DongYingAPI/Controllers/api/GetAirConditionerController.cs b/DongYingAPI/Controllers/api/GetAirConditionerController.cs index 08c5efb..7e5a6c5 100644 --- a/DongYingAPI/Controllers/api/GetAirConditionerController.cs +++ b/DongYingAPI/Controllers/api/GetAirConditionerController.cs @@ -29,12 +29,12 @@ namespace DongYingAPI.Controllers.api var time = DateTime.Now.ToString("yyyyMM"); if (date == "日") { - + var time_count = Convert.ToInt32(DateTime.Now.Hour); - for (int i = 0; i < 6; i++) + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -60,10 +60,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -87,10 +88,12 @@ namespace DongYingAPI.Controllers.api } else if (date == "年") { - for (int i = 0; i < 6; i++) + + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetCarbonEmissionController.cs b/DongYingAPI/Controllers/api/GetCarbonEmissionController.cs index faa4d79..ca1f490 100644 --- a/DongYingAPI/Controllers/api/GetCarbonEmissionController.cs +++ b/DongYingAPI/Controllers/api/GetCarbonEmissionController.cs @@ -47,10 +47,11 @@ namespace DongYingAPI.Controllers.api var blist = list.Where(x => x.DeviceName.Contains("地源侧循环泵")).ToList(); var clist = list.Where(x => x.DeviceName.Contains("主机控制柜")).ToList(); var now = DateTime.Now; - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今日的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -111,10 +112,11 @@ namespace DongYingAPI.Controllers.api var blist = list.Where(x => x.DeviceName.Contains("地源侧循环泵")).ToList(); var clist = list.Where(x => x.DeviceName.Contains("主机控制柜")).ToList(); var now = DateTime.Now; - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -195,10 +197,11 @@ namespace DongYingAPI.Controllers.api var blist = list.Where(x => x.DeviceName.Contains("地源侧循环泵")).ToList(); var clist = list.Where(x => x.DeviceName.Contains("主机控制柜")).ToList(); var now = DateTime.Now; - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetCarbonIntensityController.cs b/DongYingAPI/Controllers/api/GetCarbonIntensityController.cs index 1a87871..15708e0 100644 --- a/DongYingAPI/Controllers/api/GetCarbonIntensityController.cs +++ b/DongYingAPI/Controllers/api/GetCarbonIntensityController.cs @@ -37,9 +37,14 @@ namespace DongYingAPI.Controllers.api try { var data =new List(); - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { - + // 只处理今年的数据 + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) + { + continue; + } var now = DateTime.Now; time = now.AddMonths(-i).ToString("yyyMM"); var a = bll.IsExistsTable(date_base, "electricity_data_" + time); diff --git a/DongYingAPI/Controllers/api/GetCarbonMeasureController.cs b/DongYingAPI/Controllers/api/GetCarbonMeasureController.cs index dfb955b..0d77af3 100644 --- a/DongYingAPI/Controllers/api/GetCarbonMeasureController.cs +++ b/DongYingAPI/Controllers/api/GetCarbonMeasureController.cs @@ -40,10 +40,11 @@ namespace DongYingAPI.Controllers var data = new List(); if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -98,10 +99,11 @@ namespace DongYingAPI.Controllers } else if (date == "年") { + var time_count = Convert.ToInt32(DateTime.Now.Month); for (int i = 0; i < 6; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetChamberLoadController.cs b/DongYingAPI/Controllers/api/GetChamberLoadController.cs index 3e2596a..1b5272d 100644 --- a/DongYingAPI/Controllers/api/GetChamberLoadController.cs +++ b/DongYingAPI/Controllers/api/GetChamberLoadController.cs @@ -32,10 +32,11 @@ namespace DongYingAPI.Controllers.api var time = DateTime.Now.ToString("yyyyMM"); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -62,10 +63,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -90,10 +92,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } @@ -128,10 +131,11 @@ namespace DongYingAPI.Controllers.api var time = DateTime.Now.ToString("yyyyMM"); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { - // 只处理今日的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + // 只处理今年的数据 + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -158,10 +162,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { - // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + // 只处理今年的数据 + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -186,10 +191,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } @@ -224,10 +230,11 @@ namespace DongYingAPI.Controllers.api var time = DateTime.Now.ToString("yyyyMM"); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -254,10 +261,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -282,10 +290,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetCurrentVoltageController.cs b/DongYingAPI/Controllers/api/GetCurrentVoltageController.cs index 2c4882b..861690f 100644 --- a/DongYingAPI/Controllers/api/GetCurrentVoltageController.cs +++ b/DongYingAPI/Controllers/api/GetCurrentVoltageController.cs @@ -30,7 +30,8 @@ namespace DongYingAPI.Controllers.api if (room.type == "电流") { var data = new List(); - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { var model=new current_voltageData(); model.time = DateTime.Now.AddHours(-i).ToString("HH:00"); @@ -69,7 +70,8 @@ namespace DongYingAPI.Controllers.api if (room.type == "电压") { var data = new List(); - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { var model = new current_voltageData(); model.time = DateTime.Now.AddHours(-i).ToString("HH:00"); diff --git a/DongYingAPI/Controllers/api/GetDistributionPowerController.cs b/DongYingAPI/Controllers/api/GetDistributionPowerController.cs index 956c74b..c074ed0 100644 --- a/DongYingAPI/Controllers/api/GetDistributionPowerController.cs +++ b/DongYingAPI/Controllers/api/GetDistributionPowerController.cs @@ -29,7 +29,8 @@ namespace DongYingAPI.Controllers.api var data = new List(); var list = bll_info.GetModelList("").Where(x => x.DeviceName == room.name).ToList(); var time = DateTime.Now.ToString("yyyyMM"); - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { var model=new distribution_powerData(); model.time = DateTime.Now.AddHours(-i).ToString("HH:00"); diff --git a/DongYingAPI/Controllers/api/GetElectricQuantityController.cs b/DongYingAPI/Controllers/api/GetElectricQuantityController.cs index ce7939d..05d176d 100644 --- a/DongYingAPI/Controllers/api/GetElectricQuantityController.cs +++ b/DongYingAPI/Controllers/api/GetElectricQuantityController.cs @@ -32,10 +32,11 @@ namespace DongYingAPI.Controllers.api var now = DateTime.Now; if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -84,10 +85,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -129,10 +131,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetElectricityConsumptionController.cs b/DongYingAPI/Controllers/api/GetElectricityConsumptionController.cs index 508bc68..ea06dda 100644 --- a/DongYingAPI/Controllers/api/GetElectricityConsumptionController.cs +++ b/DongYingAPI/Controllers/api/GetElectricityConsumptionController.cs @@ -1,4 +1,5 @@ using DataServer.api; +using DongYingAPI.Util; using Newtonsoft.Json; using System; using System.Collections; @@ -35,16 +36,12 @@ namespace DongYingAPI.Controllers var now = DateTime.Now; if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count =Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { - // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) - { - continue; - } var jdate = now.AddHours(-i).ToString("yyyy-MM-dd HH:00:00"); // 只处理今天的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -72,6 +69,10 @@ namespace DongYingAPI.Controllers Time = Convert.ToDateTime(jdate).ToString("HH:00"), EH = 0 }; + if (model.EH < 0) + { + model.EH = 0; + } data.Add(model); } else @@ -83,6 +84,10 @@ namespace DongYingAPI.Controllers Time = Convert.ToDateTime(jdate).ToString("HH:00"), EH = num1 - num2 }; + if (model.EH < 0) + { + model.EH = 0; + } data.Add(model); } @@ -92,13 +97,9 @@ namespace DongYingAPI.Controllers } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { - // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) - { - continue; - } string jdate; if (i == 0) { @@ -133,7 +134,7 @@ namespace DongYingAPI.Controllers var model = new electricity_consumptionData(); ; model.Time = DateTime.Now.AddDays(-i).ToString("MM-dd"); model.EH = num1 - num2; - if (model.EH > 0) + if (model.EH < 0) { model.EH = 0; } @@ -142,10 +143,11 @@ namespace DongYingAPI.Controllers } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } @@ -188,14 +190,14 @@ namespace DongYingAPI.Controllers var model = new electricity_consumptionData(); ; model.Time = jdate.ToString("MM月"); model.EH = num1 - num2; - if (model.EH > 0) + if (model.EH < 0) { model.EH = 0; } data.Add(model); } } - var adata = data.OrderBy(x => x.EH).ToList(); + var adata = data.OrderBy(x => x.Time).ToList(); res.code = 200; res.msg = "成功"; res.data = adata; diff --git a/DongYingAPI/Controllers/api/GetEnergyTrendsController.cs b/DongYingAPI/Controllers/api/GetEnergyTrendsController.cs index 4fccb71..bd38134 100644 --- a/DongYingAPI/Controllers/api/GetEnergyTrendsController.cs +++ b/DongYingAPI/Controllers/api/GetEnergyTrendsController.cs @@ -33,10 +33,11 @@ namespace DongYingAPI.Controllers.api var list = bll_info.GetModelList(" FloorName='科技馆负一层地源热泵'"); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -74,10 +75,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -122,10 +124,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetGasConsumptionController.cs b/DongYingAPI/Controllers/api/GetGasConsumptionController.cs index 35faf65..5805b8a 100644 --- a/DongYingAPI/Controllers/api/GetGasConsumptionController.cs +++ b/DongYingAPI/Controllers/api/GetGasConsumptionController.cs @@ -23,10 +23,11 @@ namespace DongYingAPI.Controllers.api var data = new List(); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -44,10 +45,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -65,10 +67,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetIlluminationLoadController.cs b/DongYingAPI/Controllers/api/GetIlluminationLoadController.cs index a53d7df..72cb833 100644 --- a/DongYingAPI/Controllers/api/GetIlluminationLoadController.cs +++ b/DongYingAPI/Controllers/api/GetIlluminationLoadController.cs @@ -68,11 +68,11 @@ namespace DongYingAPI.Controllers.api var list = bll_info.GetModelList("").Where(x => x.DeviceName.Contains("照明")).ToList(); if (date == "日") { - - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -112,10 +112,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "月") { + var time_count = Convert.ToInt32(DateTime.Now.Day); for (int i = 0; i < 6; i++) { // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -150,10 +151,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetLightingLoadController.cs b/DongYingAPI/Controllers/api/GetLightingLoadController.cs index 9ffe264..47b116b 100644 --- a/DongYingAPI/Controllers/api/GetLightingLoadController.cs +++ b/DongYingAPI/Controllers/api/GetLightingLoadController.cs @@ -31,11 +31,11 @@ namespace DongYingAPI.Controllers.api if (date == "日") { - - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今日的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -62,10 +62,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -90,10 +91,11 @@ namespace DongYingAPI.Controllers.api } else if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetPowerLoadController.cs b/DongYingAPI/Controllers/api/GetPowerLoadController.cs index e1d6a5e..918e4b7 100644 --- a/DongYingAPI/Controllers/api/GetPowerLoadController.cs +++ b/DongYingAPI/Controllers/api/GetPowerLoadController.cs @@ -29,10 +29,11 @@ namespace DongYingAPI.Controllers.api var list = bll.GetModelListDate("", time); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -55,10 +56,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -79,10 +81,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetRoomElectricityController.cs b/DongYingAPI/Controllers/api/GetRoomElectricityController.cs index baa7a45..7745289 100644 --- a/DongYingAPI/Controllers/api/GetRoomElectricityController.cs +++ b/DongYingAPI/Controllers/api/GetRoomElectricityController.cs @@ -36,10 +36,11 @@ namespace DongYingAPI.Controllers.api var now=DateTime.Now; if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -81,10 +82,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { // 只处理今年的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -131,10 +133,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { + var time_count = Convert.ToInt32(DateTime.Now.Month); for (int i = 0; i < 6; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } @@ -196,10 +199,11 @@ namespace DongYingAPI.Controllers.api var now = DateTime.Now; if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { - // 只处理今日的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + // 只处理今年的数据 + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -241,10 +245,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { - // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + // 只处理今年的数据 + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -291,10 +296,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { + var time_count = Convert.ToInt32(DateTime.Now.Month); for (int i = 0; i < 6; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } @@ -356,10 +362,11 @@ namespace DongYingAPI.Controllers.api var now = DateTime.Now; if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { - // 只处理今日的数据 - if (DateTime.Now.AddDays(-i).Day != DateTime.Now.Day) + // 只处理今年的数据 + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) { continue; } @@ -401,10 +408,11 @@ namespace DongYingAPI.Controllers.api } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { - // 只处理今月的数据 - if (DateTime.Now.AddMonths(-i).Month != DateTime.Now.Month) + // 只处理今年的数据 + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) { continue; } @@ -451,10 +459,11 @@ namespace DongYingAPI.Controllers.api } if (date == "年") { + var time_count = Convert.ToInt32(DateTime.Now.Month); for (int i = 0; i < 6; i++) { // 只处理今年的数据 - if (DateTime.Now.AddYears(-i).Year != DateTime.Now.Year) + if (DateTime.Now.AddMonths(-i).Year != DateTime.Now.Year) { continue; } diff --git a/DongYingAPI/Controllers/api/GetWaterConsumptionController.cs b/DongYingAPI/Controllers/api/GetWaterConsumptionController.cs index 6ac2c02..1802c55 100644 --- a/DongYingAPI/Controllers/api/GetWaterConsumptionController.cs +++ b/DongYingAPI/Controllers/api/GetWaterConsumptionController.cs @@ -26,8 +26,13 @@ namespace DongYingAPI.Controllers.api var list = bll.GetModelList(""); if (date == "日") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Hour); + for (int i = 0; i < time_count; i++) { + if (DateTime.Now.AddHours(-i).Day != DateTime.Now.Day) + { + continue; + } var now = DateTime.Now; var time = now.AddHours(-i).ToString("HH:00"); //这个小时 @@ -51,13 +56,22 @@ namespace DongYingAPI.Controllers.api var model=new water_consumptionData(); model.time = time; model.WaterValue = num1 - num2; + if (model.WaterValue < 0) + { + model.WaterValue = 0; + } data.Add(model); } } if (date == "月") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Day); + for (int i = 0; i < time_count; i++) { + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) + { + continue; + } var now = DateTime.Now; var time = now.AddDays(-i).ToString("MM-dd"); var ztime = ""; @@ -91,13 +105,23 @@ namespace DongYingAPI.Controllers.api var model = new water_consumptionData(); model.time = time; model.WaterValue = num1 - num2; + model.WaterValue = num1 - num2; + if (model.WaterValue < 0) + { + model.WaterValue = 0; + } data.Add(model); } } if (date == "年") { - for (int i = 0; i < 6; i++) + var time_count = Convert.ToInt32(DateTime.Now.Month); + for (int i = 0; i < time_count; i++) { + if (DateTime.Now.AddDays(-i).Month != DateTime.Now.Month) + { + continue; + } var now = DateTime.Now; var time = now.AddMonths(-i).ToString("MM月"); var ztime1 = ""; @@ -138,6 +162,11 @@ namespace DongYingAPI.Controllers.api var model = new water_consumptionData(); model.time = time; model.WaterValue = num1 - num2; + model.WaterValue = num1 - num2; + if (model.WaterValue < 0) + { + model.WaterValue = 0; + } data.Add(model); } } diff --git a/DongYingAPI/DongYingAPI.csproj b/DongYingAPI/DongYingAPI.csproj index e8e59d2..666575a 100644 --- a/DongYingAPI/DongYingAPI.csproj +++ b/DongYingAPI/DongYingAPI.csproj @@ -47,7 +47,7 @@ False - ..\DataServer\bin\Debug\DataServer.dll + ..\DataServer\bin\Release\DataServer.dll ..\packages\HslCommunication.10.1.2\lib\net451\HslCommunication.dll diff --git a/DongYingAPI/Properties/PublishProfiles/FolderProfile1.pubxml.user b/DongYingAPI/Properties/PublishProfiles/FolderProfile1.pubxml.user index 6fb36ed..610cdf4 100644 --- a/DongYingAPI/Properties/PublishProfiles/FolderProfile1.pubxml.user +++ b/DongYingAPI/Properties/PublishProfiles/FolderProfile1.pubxml.user @@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. <_PublishTargetUrl>E:\林谷项目\东营两馆一宫\后端框架\DongYing\DongYingAPI\bin\app.publish\ - True|2024-02-01T02:10:55.0739031Z;True|2024-02-01T09:46:59.8042783+08:00;True|2024-02-01T09:23:48.9652035+08:00;True|2024-01-31T16:21:08.6583762+08:00;True|2024-01-31T13:41:30.5192673+08:00;True|2024-01-30T15:15:26.7880164+08:00;True|2024-01-30T14:10:09.8489640+08:00;True|2024-01-30T13:16:11.0447202+08:00;True|2024-01-30T09:45:36.4140361+08:00;True|2024-01-29T14:17:38.5560371+08:00;True|2024-01-29T14:16:41.5597407+08:00;True|2024-01-24T17:31:19.5804558+08:00;True|2024-01-20T14:34:47.0539217+08:00;False|2024-01-15T13:49:44.5332318+08:00;True|2024-01-15T11:01:00.7602516+08:00;True|2024-01-15T09:26:27.2161156+08:00;True|2024-01-10T17:34:07.8440850+08:00;False|2024-01-10T17:33:54.1670007+08:00;True|2024-01-10T17:32:39.4867251+08:00;True|2024-01-10T14:45:12.0400450+08:00; + True|2024-02-01T06:38:16.2460751Z;True|2024-02-01T13:56:20.6256272+08:00;True|2024-02-01T10:10:55.0739031+08:00;True|2024-02-01T09:46:59.8042783+08:00;True|2024-02-01T09:23:48.9652035+08:00;True|2024-01-31T16:21:08.6583762+08:00;True|2024-01-31T13:41:30.5192673+08:00;True|2024-01-30T15:15:26.7880164+08:00;True|2024-01-30T14:10:09.8489640+08:00;True|2024-01-30T13:16:11.0447202+08:00;True|2024-01-30T09:45:36.4140361+08:00;True|2024-01-29T14:17:38.5560371+08:00;True|2024-01-29T14:16:41.5597407+08:00;True|2024-01-24T17:31:19.5804558+08:00;True|2024-01-20T14:34:47.0539217+08:00;False|2024-01-15T13:49:44.5332318+08:00;True|2024-01-15T11:01:00.7602516+08:00;True|2024-01-15T09:26:27.2161156+08:00;True|2024-01-10T17:34:07.8440850+08:00;False|2024-01-10T17:33:54.1670007+08:00;True|2024-01-10T17:32:39.4867251+08:00;True|2024-01-10T14:45:12.0400450+08:00; @@ -79,16 +79,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 09/10/2013 16:29:20 - 01/31/2024 18:14:34 + 02/01/2024 13:39:38 - 01/31/2024 18:14:34 + 02/01/2024 13:39:38 - 02/01/2024 10:14:51 + 02/01/2024 15:22:34 - 02/01/2024 10:14:51 + 02/01/2024 15:22:34 08/03/2021 14:52:26 @@ -394,22 +394,22 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/10/2024 13:26:12 - 02/01/2024 09:54:37 + 02/01/2024 14:46:23 02/01/2024 09:28:11 - 02/01/2024 09:56:10 + 02/01/2024 14:47:53 01/11/2024 18:27:33 - 01/12/2024 09:45:18 + 02/01/2024 14:49:15 - 02/01/2024 10:10:27 + 02/01/2024 14:51:17 01/10/2024 13:25:43 @@ -421,10 +421,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/31/2024 18:13:29 - 02/01/2024 10:00:03 + 02/01/2024 14:54:17 - 01/31/2024 18:10:56 + 02/01/2024 14:55:51 01/12/2024 15:06:05 @@ -433,10 +433,10 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/30/2024 17:45:02 - 01/12/2024 15:11:10 + 02/01/2024 13:56:01 - 01/31/2024 16:19:42 + 02/01/2024 15:10:41 01/31/2024 18:39:40 @@ -448,13 +448,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/31/2024 16:39:57 - 02/01/2024 10:01:29 + 02/01/2024 14:37:40 - 02/01/2024 10:02:20 + 02/01/2024 14:57:16 - 02/01/2024 10:03:02 + 02/01/2024 15:10:41 01/31/2024 18:14:26 @@ -466,16 +466,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/11/2024 13:37:00 - 02/01/2024 10:03:47 + 02/01/2024 15:10:41 01/24/2024 17:21:00 - 02/01/2024 10:04:57 + 02/01/2024 15:03:20 - 02/01/2024 10:10:27 + 02/01/2024 15:10:41 01/10/2024 16:58:07 @@ -487,7 +487,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/30/2024 17:36:42 - 02/01/2024 10:06:37 + 02/01/2024 15:08:46 01/31/2024 18:22:15 @@ -496,13 +496,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/09/2024 17:02:14 - 02/01/2024 10:08:52 + 02/01/2024 15:09:57 01/30/2024 17:33:34 - 01/31/2024 13:37:17 + 02/01/2024 15:22:13 01/09/2024 10:54:33 @@ -580,7 +580,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. 01/02/2024 09:27:24 - 01/15/2024 11:00:59 + 02/01/2024 13:56:20 \ No newline at end of file diff --git a/DongYingAPI/Util/Tool.cs b/DongYingAPI/Util/Tool.cs index 2b24b46..4275ed3 100644 --- a/DongYingAPI/Util/Tool.cs +++ b/DongYingAPI/Util/Tool.cs @@ -35,5 +35,41 @@ namespace DongYingAPI.Util return 0; } } + /// + /// 计算两个时间的差别 + /// + /// + /// + /// + /// + public static int GetUsedMonth2(string type, DateTime dynamicTime, DateTime currentDate) + { + try + { + int year = currentDate.Month - dynamicTime.Month; //月 + int month = dynamicTime.Day-currentDate.Day; //日 + int day = dynamicTime.Hour - currentDate.Hour;//小时 //int month1 = currentDate.Year * 12 + currentDate.Month - dynamicTime.Year * 12 - dynamicTime.Month; //相差的月份 + if (type == "年") + { + return Convert.ToInt32(year); + } + else if(type=="月") + { + return Convert.ToInt32(month); + } + else if (type == "日") + { + return Convert.ToInt32(day); + } + else + { + return 0; + } + } + catch (Exception) + { + return 0; + } + } } } \ No newline at end of file diff --git a/DongYingAPI/bin/DataServer.dll b/DongYingAPI/bin/DataServer.dll index 4ef7fc2..80f7f0b 100644 Binary files a/DongYingAPI/bin/DataServer.dll and b/DongYingAPI/bin/DataServer.dll differ diff --git a/DongYingAPI/bin/DataServer.pdb b/DongYingAPI/bin/DataServer.pdb index c7720b8..3a4325f 100644 Binary files a/DongYingAPI/bin/DataServer.pdb and b/DongYingAPI/bin/DataServer.pdb differ diff --git a/DongYingAPI/bin/DongYingAPI.dll b/DongYingAPI/bin/DongYingAPI.dll index 5b34d3e..8d68ab1 100644 Binary files a/DongYingAPI/bin/DongYingAPI.dll and b/DongYingAPI/bin/DongYingAPI.dll differ diff --git a/DongYingAPI/bin/DongYingAPI.pdb b/DongYingAPI/bin/DongYingAPI.pdb index a3ecba6..e99a840 100644 Binary files a/DongYingAPI/bin/DongYingAPI.pdb and b/DongYingAPI/bin/DongYingAPI.pdb differ diff --git a/DongYingAPI/obj/Debug/DongYingAPI.csproj.AssemblyReference.cache b/DongYingAPI/obj/Debug/DongYingAPI.csproj.AssemblyReference.cache index ea59012..9cb4616 100644 Binary files a/DongYingAPI/obj/Debug/DongYingAPI.csproj.AssemblyReference.cache and b/DongYingAPI/obj/Debug/DongYingAPI.csproj.AssemblyReference.cache differ diff --git a/DongYingAPI/obj/Debug/DongYingAPI.csproj.CoreCompileInputs.cache b/DongYingAPI/obj/Debug/DongYingAPI.csproj.CoreCompileInputs.cache index 9f87141..2d2b418 100644 --- a/DongYingAPI/obj/Debug/DongYingAPI.csproj.CoreCompileInputs.cache +++ b/DongYingAPI/obj/Debug/DongYingAPI.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -6dd66ccb40f501fe19d1c9c146e1abf6c1d24609 +663303696d9657af00206aa0ee4922bf9dbab726 diff --git a/DongYingAPI/obj/Debug/DongYingAPI.dll b/DongYingAPI/obj/Debug/DongYingAPI.dll index 376f776..3cb1648 100644 Binary files a/DongYingAPI/obj/Debug/DongYingAPI.dll and b/DongYingAPI/obj/Debug/DongYingAPI.dll differ diff --git a/DongYingAPI/obj/Debug/DongYingAPI.pdb b/DongYingAPI/obj/Debug/DongYingAPI.pdb index 630b78d..205e860 100644 Binary files a/DongYingAPI/obj/Debug/DongYingAPI.pdb and b/DongYingAPI/obj/Debug/DongYingAPI.pdb differ diff --git a/Security/Security.csproj b/Security/Security.csproj index 573be1e..a7406a3 100644 --- a/Security/Security.csproj +++ b/Security/Security.csproj @@ -63,7 +63,7 @@ - ..\DataServer\bin\Debug\DataServer.dll + ..\DataServer\bin\Release\DataServer.dll ..\packages\HslCommunication.10.1.2\lib\net451\HslCommunication.dll diff --git a/Security/ServiceSecurity.cs b/Security/ServiceSecurity.cs index e66512a..86e6641 100644 --- a/Security/ServiceSecurity.cs +++ b/Security/ServiceSecurity.cs @@ -5,17 +5,7 @@ using System.ServiceProcess; using System.Text; using HslCommunication.MQTT; using HslCommunication; -using DataServer.api; using System.Collections.Generic; -using System.Runtime.Remoting.Channels; -using HslCommunication.Profinet.Geniitek; -using HslCommunication.Profinet.AllenBradley; -using System.Security.Policy; -using System.Text.RegularExpressions; -using LitJson; -using Newtonsoft.Json.Linq; -using System.Xml.Linq; -using System.Runtime.InteropServices; namespace Security { @@ -34,7 +24,7 @@ namespace Security static DataServer.BLL.meteorological_station bll_meteorological =new DataServer.BLL.meteorological_station(); static DataServer.BLL.device_state bll_state=new DataServer.BLL.device_state(); static DataServer.BLL.device_info bll_info = new DataServer.BLL.device_info(); - static DataServer.BLL.device_host bll_host=new DataServer.BLL.device_host(); + static DataServer.BLL.host_parameter bll_host = new DataServer.BLL.host_parameter(); public ServiceSecurity() { InitializeComponent(); @@ -5746,7 +5736,7 @@ namespace Security if (item.dl.ContainsKey("1号压缩机当前容量")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "1号压缩机当前容量"; @@ -5769,7 +5759,7 @@ namespace Security } if (item.dl.ContainsKey("1号压缩机主机运行状态")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "1号压缩机主机运行状态"; @@ -5792,7 +5782,7 @@ namespace Security } if (item.dl.ContainsKey("2号压缩机当前容量")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "2号压缩机当前容量"; @@ -5815,7 +5805,7 @@ namespace Security } if (item.dl.ContainsKey("2号压缩机主机运行状态")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "2号压缩机主机运行状态"; @@ -5838,7 +5828,7 @@ namespace Security } if (item.dl.ContainsKey("3号压缩机当前容量")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "3号压缩机当前容量"; @@ -5861,7 +5851,7 @@ namespace Security } if (item.dl.ContainsKey("3号压缩机主机运行状态")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "3号压缩机主机运行状态"; @@ -5884,7 +5874,7 @@ namespace Security } if (item.dl.ContainsKey("本地远程指示,0本地,1远程")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "本地远程指示,0本地,1远程"; @@ -5907,7 +5897,7 @@ namespace Security } if (item.dl.ContainsKey("电源电源,单位V")) { - var hmodel = new DataServer.Model.device_host(); + var hmodel = new DataServer.Model.host_parameter(); hmodel.HostId = Guid.NewGuid().ToString("N"); hmodel.HostName = "一号主机"; hmodel.DeviceName = "电源电源,单位V"; @@ -5929,204 +5919,6 @@ namespace Security } } } - if (name == "2") - { - //状态 - smodel.DeviceId = Guid.NewGuid().ToString("N"); - smodel.DeviceName = "二号主机"; - if (item.dl.ContainsKey("1号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["1号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceOneState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceOneState = num; - } - } - if (item.dl.ContainsKey("2号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["2号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceTwoState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceTwoState = num; - } - } - if (item.dl.ContainsKey("3号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["3号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceThreeState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceThreeState = num; - } - } - smodel.CreateTime = DateTime.Now; - smodel.EntireTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:00:00")); - bll_state.Add(smodel); - } - if (name == "3") - { - //状态 - smodel.DeviceId = Guid.NewGuid().ToString("N"); - smodel.DeviceName = "三号主机"; - if (item.dl.ContainsKey("1号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["1号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceOneState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceOneState = num; - } - } - if (item.dl.ContainsKey("2号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["2号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceTwoState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceTwoState = num; - } - } - if (item.dl.ContainsKey("3号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["3号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceThreeState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceThreeState = num; - } - } - smodel.CreateTime = DateTime.Now; - smodel.EntireTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:00:00")); - bll_state.Add(smodel); - } - if (name == "4") - { - //状态 - smodel.DeviceId = Guid.NewGuid().ToString("N"); - smodel.DeviceName = "四号主机"; - if (item.dl.ContainsKey("1号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["1号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceOneState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceOneState = num; - } - } - if (item.dl.ContainsKey("2号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["2号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceTwoState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceTwoState = num; - } - } - if (item.dl.ContainsKey("3号压缩机主机运行状态")) - { - int number; - var stringnumber = item.dl["3号压缩机主机运行状态"]; - char delimiters = ':'; // 分隔符 - int lastDotIndexs = stringnumber.LastIndexOf(delimiters); // 查找最后一个分隔符的位置 - - if (lastDotIndexs != -1) // 如果找到分隔符 - { - var num = stringnumber.Substring(lastDotIndexs + 1, 1); - number = Convert.ToInt32(num); // 截取分隔符后面的子字符串 - smodel.DeviceThreeState = number; - } - else - { - var num = Convert.ToInt32(stringnumber); - smodel.DeviceThreeState = num; - } - } - smodel.CreateTime = DateTime.Now; - smodel.EntireTime = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:00:00")); - bll_state.Add(smodel); - } } diff --git a/Security/bin/Debug/DataServer.dll b/Security/bin/Debug/DataServer.dll index 4ef7fc2..80f7f0b 100644 Binary files a/Security/bin/Debug/DataServer.dll and b/Security/bin/Debug/DataServer.dll differ diff --git a/Security/bin/Debug/DataServer.pdb b/Security/bin/Debug/DataServer.pdb index c7720b8..3a4325f 100644 Binary files a/Security/bin/Debug/DataServer.pdb and b/Security/bin/Debug/DataServer.pdb differ diff --git a/Security/bin/Debug/ServiceSecurity.application b/Security/bin/Debug/ServiceSecurity.application index e063632..b936324 100644 --- a/Security/bin/Debug/ServiceSecurity.application +++ b/Security/bin/Debug/ServiceSecurity.application @@ -14,7 +14,7 @@ - M35gbFM7GTDeHhYLvOzYTJUnd8unscXCkE14yPNwwH4= + 4ch5AfcLtIzZPVLfMJ/ik2JeME0wtau+NLELeZ0EgiY= diff --git a/Security/bin/Debug/ServiceSecurity.exe b/Security/bin/Debug/ServiceSecurity.exe index b9ed5b1..3adac73 100644 Binary files a/Security/bin/Debug/ServiceSecurity.exe and b/Security/bin/Debug/ServiceSecurity.exe differ diff --git a/Security/bin/Debug/ServiceSecurity.exe.manifest b/Security/bin/Debug/ServiceSecurity.exe.manifest index b824069..1baab8d 100644 --- a/Security/bin/Debug/ServiceSecurity.exe.manifest +++ b/Security/bin/Debug/ServiceSecurity.exe.manifest @@ -42,14 +42,14 @@ - + - 9km1gcVNWyjli/FvSB8HY8mLmhv1NJdJJyNVFTY36dU= + JfuOEh+ADhBVziCaijjA/je22YqH6PosXhjHyBumSVk= @@ -138,14 +138,14 @@ - + - Zf3WECvVV2p3md+BpjkXIW9z4PJgHamKdrFraeGHhgg= + V8VaHiVOe6fnZRv9gWIdQ8TqAfmqLKEZSNMykAd32xA= diff --git a/Security/bin/Debug/ServiceSecurity.pdb b/Security/bin/Debug/ServiceSecurity.pdb index a06e8db..ed81c84 100644 Binary files a/Security/bin/Debug/ServiceSecurity.pdb and b/Security/bin/Debug/ServiceSecurity.pdb differ diff --git a/Security/bin/Debug/app.publish/ServiceSecurity.exe b/Security/bin/Debug/app.publish/ServiceSecurity.exe index 844e5f5..1971930 100644 Binary files a/Security/bin/Debug/app.publish/ServiceSecurity.exe and b/Security/bin/Debug/app.publish/ServiceSecurity.exe differ diff --git a/Security/obj/Debug/Security.csproj.AssemblyReference.cache b/Security/obj/Debug/Security.csproj.AssemblyReference.cache index a6ee614..1e3a809 100644 Binary files a/Security/obj/Debug/Security.csproj.AssemblyReference.cache and b/Security/obj/Debug/Security.csproj.AssemblyReference.cache differ diff --git a/Security/obj/Debug/Security.csproj.CoreCompileInputs.cache b/Security/obj/Debug/Security.csproj.CoreCompileInputs.cache index 9610b55..09d5ada 100644 --- a/Security/obj/Debug/Security.csproj.CoreCompileInputs.cache +++ b/Security/obj/Debug/Security.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -9188912aea4f3bf964cf72ec7e5362953260c83a +f934b32f0702d40d90462ecfd610346cafedcd05 diff --git a/Security/obj/Debug/ServiceSecurity.application b/Security/obj/Debug/ServiceSecurity.application index e063632..b936324 100644 --- a/Security/obj/Debug/ServiceSecurity.application +++ b/Security/obj/Debug/ServiceSecurity.application @@ -14,7 +14,7 @@ - M35gbFM7GTDeHhYLvOzYTJUnd8unscXCkE14yPNwwH4= + 4ch5AfcLtIzZPVLfMJ/ik2JeME0wtau+NLELeZ0EgiY= diff --git a/Security/obj/Debug/ServiceSecurity.exe b/Security/obj/Debug/ServiceSecurity.exe index b9ed5b1..3adac73 100644 Binary files a/Security/obj/Debug/ServiceSecurity.exe and b/Security/obj/Debug/ServiceSecurity.exe differ diff --git a/Security/obj/Debug/ServiceSecurity.exe.manifest b/Security/obj/Debug/ServiceSecurity.exe.manifest index b824069..1baab8d 100644 --- a/Security/obj/Debug/ServiceSecurity.exe.manifest +++ b/Security/obj/Debug/ServiceSecurity.exe.manifest @@ -42,14 +42,14 @@ - + - 9km1gcVNWyjli/FvSB8HY8mLmhv1NJdJJyNVFTY36dU= + JfuOEh+ADhBVziCaijjA/je22YqH6PosXhjHyBumSVk= @@ -138,14 +138,14 @@ - + - Zf3WECvVV2p3md+BpjkXIW9z4PJgHamKdrFraeGHhgg= + V8VaHiVOe6fnZRv9gWIdQ8TqAfmqLKEZSNMykAd32xA= diff --git a/Security/obj/Debug/ServiceSecurity.pdb b/Security/obj/Debug/ServiceSecurity.pdb index a06e8db..ed81c84 100644 Binary files a/Security/obj/Debug/ServiceSecurity.pdb and b/Security/obj/Debug/ServiceSecurity.pdb differ