diff --git a/steamMY.sql b/steamMY.sql index c85a31a..88c47c3 100644 --- a/steamMY.sql +++ b/steamMY.sql @@ -10,7 +10,8 @@ BEGIN INSERT INTO ems_report_point_steam (monitor_code, instrument_value,begin_time,end_time,record_time) SELECT t1.monitor_code AS monitor_code, - CONVERT(DECIMAL(18, 2), ISNULL((t3.steam_flow-t4.steam_flow),0)) AS instrument_value, + CONVERT(DECIMAL(18, 2), ISNULL((t3.steam_flow-t4.steam_flow),0)) AS expand, + ISNULL(t3.steam_flow,0) AS instrument_value, DATEADD(HH, -1, @dateinfo) AS begin_time, DATEADD(HH, 0, @dateinfo) AS end_time,