jrx_static_sql=SELECT equipno, equipname, holedepth, burialdepth, longitude, latitude, altitude, isUsed, isSync FROM wkkInfo a INNER JOIN (SELECT ID FROM SensorInfo WHERE Location like '%浸润线%') b on a.equipname = b.ID
jyl_static_sql=SELECT equipno, equipname, longitude, latitude, altitude, isUsed, isSync FROM wkkInfo where equipname like '%雨量%'
nbwy_static_sql=SELECT equipno, equipname, longitude, latitude, altitude, isUsed, isSync FROM wkkInfo a INNER JOIN (SELECT ID FROM SensorInfo WHERE Location like '%内部位移%') b on a.equipname = b.ID
bmwy_static_sql=SELECT equipno, equipname, longitude, latitude, altitude, isUsed, isSync FROM wkkInfo a INNER JOIN (SELECT ID FROM SensorInfo WHERE Location like '位移%') b on a.equipname = b.ID
[RealTimeSqlLanguage]
gt_real_time_sql=SELECT b.equipno AS sensorno, a.upTempValue AS value, a.upTime AS collectdate from TempT a inner join (select equipno, equipname from [mssensors].[dbo].[wkkInfo] where equipname like '%干滩%') b on a.ID = b.equipname
ksw_real_time_sql=
jrx_real_time_sql=
jyl_real_time_sql=
nbwy_real_time_sql=
\ No newline at end of file
gt_real_time_sql=SELECT b.equipno AS sensorno, a.upTempValue AS value, CONVERT(varchar(100),a.upTime, 20) AS collectdate from TempT a inner join (select equipno, equipname from wkkInfo where equipname like '%干滩%') b on a.ID = b.equipname
ksw_real_time_sql=SELECT a.sensorno, a.set@p value, a.collectdate from (SELECT b.equipno AS sensorno, set@p=a.upTempValue/100, CONVERT(varchar(100), a.upTime, 20) AS collectdate from TempT a inner join (select a.equipno, a.equipname from wkkInfo a inner join (select ID from SensorInfo where Location like '%水位%') b on a.equipname = b.ID) b on a.ID = b.equipname) a
jrx_real_time_sql=SELECT a.sensorno, a.set@p value, a.collectdate from (SELECT b.equipno AS sensorno, set@p=a.upTempValue/100, CONVERT(varchar(100), a.upTime, 20) AS collectdate from [mssensors].[dbo].[TempT] a inner join (select a.equipno, a.equipname from [mssensors].[dbo].[wkkInfo] a inner join (select ID from [mssensors].[dbo].[SensorInfo] where Location like '%浸润线%') b on a.equipname = b.ID) b on a.ID = b.equipname) a
jyl_real_time_sql=SELECT b.equipno AS sensorno, a.upTempValue AS value, CONVERT(varchar(100),a.upTime,20) AS collectdate from [mssensors].[dbo].[TempT] a inner join (select equipno, equipname from [mssensors].[dbo].[wkkInfo] where equipname like '%雨量%') b on a.ID = b.equipname
nbwy_real_time_sql=SELECT b.equipno AS sensorno, a.upTempValue AS xvalue, 0 AS yvalue, CONVERT(varchar(100), a.upTime, 20) AS collectdate from [mssensors].[dbo].[TempT] a inner join (select a.equipno, a.equipname from [mssensors].[dbo].[wkkInfo] a inner join (select ID from [mssensors].[dbo].[SensorInfo] where Location like '%内部位移%') b on a.equipname = b.ID) b on a.ID = b.equipname
bmwy_real_time_sql=SELECT b.equipno AS sensorno, a.upTempValue AS xvalue, 0 AS yvalue, 0 AS zvalue, CONVERT(varchar(100), a.upTime, 20) AS collectdate from [mssensors].[dbo].[TempT] a inner join (select a.equipno, a.equipname from [mssensors].[dbo].[wkkInfo] a inner join (select ID from [mssensors].[dbo].[SensorInfo] where Location like '位移%') b on a.equipname = b.ID) b on a.ID = b.equipname
device_off_Line_sql=select equipno, CONVERT(VARCHAR(100), GETDATE(), 20) from TempT a right join (select equipno, equipname from wkkInfo) b on a.ID = b.equipname where a.ID is null
alarm_mess_data=select a.equipno AS sensorno, b.Temperature AS value, CASE b.warnTTemp WHEN '5' THEN '二级预警' WHEN '2' THEN '三级预警' END AS warninglevel, CONVERT(VARCHAR(100), b.warnTime, 20) AS warningdate from wkkInfo a inner join (select ID, Temperature, warnTTemp, warnTime from DataWarn where warnTime > convert(varchar(100), DATEADD(hour,-1,GETDATE()), 20)) b on a.equipname = b.ID