Commit 64cf7b57 authored by chenzhao's avatar chenzhao

修改报警列表bug

parent ac9c55f6
...@@ -26,7 +26,7 @@ public interface TdHygfJpInverterWarnMapper extends BaseMapper<TdHygfJpInverterW ...@@ -26,7 +26,7 @@ public interface TdHygfJpInverterWarnMapper extends BaseMapper<TdHygfJpInverterW
TdHygfJpInverterWarnDto getByTime(@Param("createdTime") long createdTime); TdHygfJpInverterWarnDto getByTime(@Param("createdTime") long createdTime);
List<TdHygfJpInverterWarnDto> selectWarnList(String state, String level, String minValue, String maxValue, String snCode, List<String> stationId, String startTime, String endTime, String content, Integer current, Integer size); List<TdHygfJpInverterWarnDto> selectWarnList(String state, String level, String minvalue, String maxValue, String snCode, List<String> stationId, String startTime, String endTime, String content, Integer current, Integer size);
int selectWarnListTotal(String state, String level, String minValue, String maxValue, String snCode, List<String> stationId, String startTime, String endTime, String content); int selectWarnListTotal(String state, String level, String minvalue, String maxValue, String snCode, List<String> stationId, String startTime, String endTime, String content);
} }
...@@ -65,16 +65,16 @@ ...@@ -65,16 +65,16 @@
FROM house_pv_data.td_hygf_jp_inverter_warn FROM house_pv_data.td_hygf_jp_inverter_warn
<where> <where>
<if test="state != null and state != ''"> <if test="state != null and state != ''">
AND state = #{state} AND `state` = #{state}
</if> </if>
<if test="level != null and level != ''"> <if test="level != null and level != ''">
AND level = #{level} AND `level` = #{level}
</if> </if>
<if test="minValue != null and minValue != ''"> <if test="minvalue != null and minvalue != ''">
time_long >= #{minvalue} time_long >= #{minvalue}
</if> </if>
<if test="maxValue != null and maxValue != ''"> <if test="maxValue != null and maxValue != ''">
AND time_long [<![CDATA[<=]]>]#{maxValue} AND time_long <![CDATA[<=]]> #{maxValue}
</if> </if>
<if test="snCode != null and snCode != ''"> <if test="snCode != null and snCode != ''">
AND sn_code = #{snCode} AND sn_code = #{snCode}
...@@ -110,11 +110,11 @@ ...@@ -110,11 +110,11 @@
<if test="level != null and level != ''"> <if test="level != null and level != ''">
AND level = #{level} AND level = #{level}
</if> </if>
<if test="minValue != null and minValue != ''"> <if test="minvalue != null and minvalue != ''">
time_long >= #{minvalue} time_long >= #{minvalue}
</if> </if>
<if test="maxValue != null and maxValue != ''"> <if test="maxValue != null and maxValue != ''">
AND time_long [<![CDATA[<=]]>]#{maxValue} AND time_long <![CDATA[<=]]> #{maxValue}
</if> </if>
<if test="snCode != null and snCode != ''"> <if test="snCode != null and snCode != ''">
AND sn_code = #{snCode} AND sn_code = #{snCode}
......
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