Commit 681be3b4 authored by zhangsen's avatar zhangsen

td相关 - 预警光伏和风电 详情页面修改

parent 296dae06
...@@ -30,4 +30,6 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> { ...@@ -30,4 +30,6 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> {
Integer getInfoByPageTotal(@Param("dto") FanHealthIndexDto dto); Integer getInfoByPageTotal(@Param("dto") FanHealthIndexDto dto);
FanWarningRecord getInfoByTs(@Param("ts") Long ts);
} }
...@@ -25,4 +25,6 @@ public interface PvWaringRecordMapper extends BaseMapper<PvWarningRecord> { ...@@ -25,4 +25,6 @@ public interface PvWaringRecordMapper extends BaseMapper<PvWarningRecord> {
List<PvWarningRecord> getInfoByPage(@Param("dto") FanHealthIndexDto dto); List<PvWarningRecord> getInfoByPage(@Param("dto") FanHealthIndexDto dto);
Integer getInfoByPageTotal(@Param("dto") FanHealthIndexDto dto); Integer getInfoByPageTotal(@Param("dto") FanHealthIndexDto dto);
PvWarningRecord getInfoByTs(@Param("ts") Long ts);
} }
...@@ -211,4 +211,8 @@ ...@@ -211,4 +211,8 @@
<if test="dto.startDate!= null and dto.startDate!= ''"> and ts &gt;= #{dto.startDate} </if> <if test="dto.startDate!= null and dto.startDate!= ''"> and ts &gt;= #{dto.startDate} </if>
</where> </where>
</select> </select>
<select id="getInfoByTs" resultType="com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanWarningRecord">
select * from analysis_data.fan_warning_record where ts = #{ts,jdbcType=TIMESTAMP} limit 1
</select>
</mapper> </mapper>
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
</select> </select>
<select id="getInfoByPage" resultType="com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord"> <select id="getInfoByPage" resultType="com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord">
SELECT * FROM fan_warning_record SELECT * FROM pv_warning_record
<where> <where>
<if test="dto.area!= null and dto.area!= ''"> AND arae = #{dto.area} </if> <if test="dto.area!= null and dto.area!= ''"> AND arae = #{dto.area} </if>
<if test="dto.station!= null and dto.station!= ''">AND station = #{dto.station} </if> <if test="dto.station!= null and dto.station!= ''">AND station = #{dto.station} </if>
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
</select> </select>
<select id="getInfoByPageTotal" resultType="java.lang.Integer"> <select id="getInfoByPageTotal" resultType="java.lang.Integer">
SELECT count(1) FROM fan_warning_record SELECT count(1) FROM pv_warning_record
<where> <where>
<if test="dto.area!= null and dto.area!= ''"> AND arae = #{dto.area} </if> <if test="dto.area!= null and dto.area!= ''"> AND arae = #{dto.area} </if>
<if test="dto.station!= null and dto.station!= ''">AND station = #{dto.station} </if> <if test="dto.station!= null and dto.station!= ''">AND station = #{dto.station} </if>
...@@ -227,4 +227,8 @@ ...@@ -227,4 +227,8 @@
<if test="dto.startDate!= null and dto.startDate!= ''"> and ts &gt;= #{dto.startDate} </if> <if test="dto.startDate!= null and dto.startDate!= ''"> and ts &gt;= #{dto.startDate} </if>
</where> </where>
</select> </select>
<select id="getInfoByTs" resultType="com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvWarningRecord">
select * from analysis_data.pv_warning_record where ts = #{ts,jdbcType=TIMESTAMP} limit 1
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment