feat(): 补充历史曲线查询接口

This commit is contained in:
Allenxy
2025-09-26 17:38:57 +08:00
parent f0cb82cfdb
commit ad9fdb5369
8 changed files with 79 additions and 3 deletions

View File

@@ -61,4 +61,13 @@
<select id="getLatestRecord" resultType="com.fizz.business.domain.Segment">
SELECT * FROM cpg_segment where id=(SELECT max(id) FROM cpg_segment)
</select>
<select id="queryParamByEnCoilId" resultType="com.fizz.business.vo.SegmentParamVO">
SELECT seg_no AS segNo,
JSON_UNQUOTE(JSON_EXTRACT(total_values_json, CONCAT('$.', #{paramField}, '_avg'))) AS value
FROM cpl_segment_total
WHERE en_coil_id = #{enCoilID}
ORDER BY seg_no
</select>
</mapper>