Compare commits

...

2 Commits

Author SHA1 Message Date
zch 7d8d652d49 change(ems) - 为蒸汽瞬时记录查询结果添加降序排序
- 在 EmsRecordSteamInstantMapper.xml 文件中,为 selectEmsRecordSteamInstant 查询添加了 order by ersi.obj_id desc 子句
- 此修改确保查询结果按 obj_id 字段降序排列
2 weeks ago
zch 64754286d6 change(steamMY) - 更新报表数据计算方式
- 新增 expand 字段用于计算蒸汽流量差值
- 保留 instrument_value 字段作为原始数据
2 weeks ago

@ -58,6 +58,7 @@
and ersi.record_time between #{params.beginRecordTime} and #{params.endRecordTime}
</if>
</where>
order by ersi.obj_id desc
</select>
<select id="selectEmsRecordSteamInstantByObjId" parameterType="Long" resultMap="EmsRecordSteamInstantResult">

@ -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,

Loading…
Cancel
Save