change - LED 数据增加系数

master
wenjy 1 year ago
parent 79c1e5990a
commit 39672383fc

Binary file not shown.

@ -1 +1 @@
433b0b20593db62031988848a0a633d4b110739e d44c44b8bde6a79f6a585e665c1751be7ed8068a

@ -47,3 +47,13 @@ E:\项目源码\新昆能源管理项目\MES数据抽取服务\LED物联网展
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.csproj.CopyComplete \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.csproj.CopyComplete
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.dll \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.dll
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.pdb \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Common\obj\Debug\IOT.Show.Common.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\bin\Debug\log4net.config
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\bin\Debug\IOT.Show.Common.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\bin\Debug\IOT.Show.Common.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\bin\Debug\log4net.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\bin\Debug\log4net.xml
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\obj\Debug\IOT.Show.Common.csproj.CoreCompileInputs.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\obj\Debug\IOT.Show.Common.csproj.CopyComplete
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\obj\Debug\IOT.Show.Common.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\obj\Debug\IOT.Show.Common.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Common\obj\Debug\IOT.Show.Common.csproj.AssemblyReference.cache

@ -27,3 +27,8 @@ E:\项目源码\新昆能源管理项目\MES数据抽取服务\LED物联网展
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.csproj.CoreCompileInputs.cache \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.csproj.CoreCompileInputs.cache
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.dll \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.dll
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.pdb \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Model\obj\Debug\IOT.Show.Model.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Model\bin\Debug\IOT.Show.Model.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Model\bin\Debug\IOT.Show.Model.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Model\obj\Debug\IOT.Show.Model.csproj.CoreCompileInputs.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Model\obj\Debug\IOT.Show.Model.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Model\obj\Debug\IOT.Show.Model.pdb

@ -27,3 +27,8 @@ E:\项目源码\新昆能源管理项目\MES数据抽取服务\LED物联网展
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.csproj.CoreCompileInputs.cache \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.csproj.CoreCompileInputs.cache
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.dll \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.dll
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.pdb \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.Service\obj\Debug\IOT.Show.Service.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Service\bin\Debug\IOT.Show.Service.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Service\bin\Debug\IOT.Show.Service.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Service\obj\Debug\IOT.Show.Service.csproj.CoreCompileInputs.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Service\obj\Debug\IOT.Show.Service.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.Service\obj\Debug\IOT.Show.Service.pdb

@ -17,7 +17,7 @@ namespace IOT.Show.SqlBase
{ {
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
{ {
ConnectionString = "server=10.113.254.16;uid=sa;pwd=klltdb@3391123;database=XJEMSRefactor", ConnectionString = "server=10.113.254.18;uid=sa;pwd=klltdb@3391123;database=XJIoTEMSRefactor",
DbType = SqlSugar.DbType.SqlServer, DbType = SqlSugar.DbType.SqlServer,
IsAutoCloseConnection = true, IsAutoCloseConnection = true,
InitKeyType = InitKeyType.Attribute InitKeyType = InitKeyType.Attribute
@ -46,7 +46,8 @@ namespace IOT.Show.SqlBase
{ {
try try
{ {
var sqlStr = "select monitorName,\r\n ip,\r\n title,\r\n max(t.进水温度) as tempreture,\r\n MAX(t.出水温度) as humidity,\r\n (MAX(t.出水温度) - MAX(t.进水温度)) illuminance\r\nfrom (select Left(a.monitorName, len(a.monitorName) - 4) as monitorName,\r\n Right(a.monitorName, 4) as monitorType,\r\n a.ip,\r\n a.title,\r\n b.tempreture,\r\n a.monitorOrder\r\n from (\r\n select t1.title,\r\n t2.ledId,\r\n t1.ip,\r\n t2.monitorId,\r\n t2.monitorOrder,\r\n t3.monitorName,\r\n MAX(t4.collectTime) as collectTime\r\n from T_Led_Info t1\r\n left join T_Led_MonitorUnit t2 on t1.ledId = t2.ledId\r\n left join T_Monitor t3 on t2.monitorId = t3.monitorId\r\n left join T_W_TempertureData t4 on t4.monitorId = t3.monitorId\r\n where t1.title = @titleName \r\n group by t1.title, t2.ledId, t1.ip, t2.monitorId, t3.monitorName, t2.monitorOrder\r\n ) as a\r\n left join T_W_TempertureData b on b.collectTime = a.collectTime and a.monitorId = b.monitorId) as s1\r\n pivot (max(tempreture) for monitorType in (进水温度,出水温度)) t\r\ngroup by monitorName, ip, title, monitorOrder\r\norder by monitorOrder"; var sqlStr = "select monitorName,\r\n ip,\r\n title,\r\n CONVERT(varchar,max(t.进水温度)) as tempreture,\r\n CONVERT(varchar,MAX(t.出水温度)) as humidity,\r\n CONVERT(varchar,ROUND((MAX(t.出水温度) - MAX(t.进水温度)), 2)) as illuminance\r\nfrom (select Left(a.monitorName, len(a.monitorName) - 4) as monitorName,\r\n Right(a.monitorName, 4) as monitorType,\r\n a.ip,\r\n a.title,\r\n ROUND(b.tempreture+a.repair_value,2) as tempreture,\r\n a.monitorOrder\r\n from (\r\n select t1.title,\r\n t2.ledId,\r\n t1.ip,\r\n t2.monitorId,\r\n t2.monitorOrder,\r\n t3.monitorName,t2.repair_value,\r\n MAX(t4.collectTime) as collectTime\r\n from T_Led_Info t1\r\n left join T_Led_MonitorUnit t2 on t1.ledId = t2.ledId\r\n left join T_Monitor t3 on t2.monitorId = t3.monitorId\r\n left join T_W_TempertureData t4 on t4.monitorId = t3.monitorId\r\n where t1.title = @titleName \r\n group by t1.title, t2.ledId, t1.ip, t2.monitorId, t3.monitorName, t2.repair_value,t2.monitorOrder\r\n ) as a\r\n left join T_W_TempertureData b on b.collectTime = a.collectTime and a.monitorId = b.monitorId) as s1\r\n pivot (max(tempreture) for monitorType in (进水温度,出水温度)) t\r\ngroup by monitorName, ip, title, monitorOrder\r\norder by monitorOrder";
//LogHelper.Info("语句:"+sqlStr); //LogHelper.Info("语句:"+sqlStr);
var info = db.Ado.SqlQuery<T_Led_Data>(sqlStr, var info = db.Ado.SqlQuery<T_Led_Data>(sqlStr,
new List<SugarParameter>(){ new List<SugarParameter>(){

@ -1 +1 @@
b27d1b1b98e2613cc3c7cc77534e1dd83c599c26 d581e2829ea53b112c54710617f7a928e0b6a2a6

@ -75,3 +75,18 @@ E:\项目源码\新昆能源管理项目\MES数据抽取服务\LED物联网展
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.csproj.CopyComplete \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.csproj.CopyComplete
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.dll \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.dll
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.pdb \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\log4net.config
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.SqlBase.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.SqlBase.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.Common.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.Model.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\SqlSugar.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\log4net.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.Common.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\IOT.Show.Model.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\bin\Debug\log4net.xml
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.csproj.AssemblyReference.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.csproj.CoreCompileInputs.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.csproj.CopyComplete
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show.SqlBase\obj\Debug\IOT.Show.SqlBase.pdb

Binary file not shown.

Binary file not shown.

@ -1 +1 @@
ad0577d240358618386bceb894b8aef7065946e2 939d603d10e0cfdf3f02d65a0ea2937552bb5abc

@ -104,3 +104,23 @@ E:\项目源码\新昆能源管理项目\MES数据抽取服务\LED物联网展
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.csproj.CopyComplete \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.csproj.CopyComplete
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.exe \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.exe
\\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.pdb \\Mac\iCloud\项目资料\LED物联网展示平台\密炼LED\IOT.Show\obj\Debug\IOT.Show.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\log4net.config
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.exe.config
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.exe
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.Common.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.Model.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.SqlBase.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\log4net.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\SqlSugar.dll
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.Common.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.Model.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\IOT.Show.SqlBase.pdb
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\bin\Debug\log4net.xml
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.csproj.AssemblyReference.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.ProjectInstaller.resources
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.csproj.GenerateResource.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.csproj.CoreCompileInputs.cache
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.csproj.CopyComplete
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.exe
C:\项目代码\新昆LED\XK.IOT.Show.ML\IOT.Show\obj\Debug\IOT.Show.pdb

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save