|
|
|
@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectRuleItemListVo"> |
|
|
|
select id, rule_id, cycle_time, exist_alarm, exist_alarm_end, alarm_type, status from rule_item_list |
|
|
|
select id, rule_id, cycle_time,time_type, exist_alarm, exist_alarm_end, alarm_type, status from rule_item_list |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectRuleItemListList" parameterType="RuleItemList" resultMap="RuleItemListResult"> |
|
|
|
@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<where> |
|
|
|
<if test="ruleId != null and ruleId != ''"> and rule_id = #{ruleId}</if> |
|
|
|
<if test="cycleTime != null "> and cycle_time = #{cycleTime}</if> |
|
|
|
<if test="timeType != null and timeType != ''"> and time_type = #{timeType}</if> |
|
|
|
<if test="existAlarm != null "> and exist_alarm = #{existAlarm}</if> |
|
|
|
<if test="alarmType != null and alarmType != ''"> and alarm_type = #{alarmType}</if> |
|
|
|
<if test="status != null "> and status = #{status}</if> |
|
|
|
@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="id != null and id != ''">id,</if> |
|
|
|
<if test="ruleId != null and ruleId != ''">rule_id,</if> |
|
|
|
<if test="cycleTime != null ">cycle_time,</if> |
|
|
|
<if test="timeType != null and timeType != ''">time_type,</if> |
|
|
|
<if test="existAlarm != null ">exist_alarm,</if> |
|
|
|
<if test="alarmType != null and alarmType != ''">alarm_type,</if> |
|
|
|
<if test="status != null ">status,</if> |
|
|
|
@ -49,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
|
<if test="ruleId != null and ruleId != ''">#{ruleId},</if> |
|
|
|
<if test="cycleTime != null ">#{cycleTime},</if> |
|
|
|
<if test="timeType != null and timeType != ''">#{timeType},</if> |
|
|
|
<if test="existAlarm != null ">#{existAlarm},</if> |
|
|
|
<if test="alarmType != null and alarmType != ''">#{alarmType},</if> |
|
|
|
<if test="status != null ">#{status},</if> |
|
|
|
@ -60,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="ruleId != null and ruleId != ''">rule_id = #{ruleId},</if> |
|
|
|
<if test="cycleTime != null ">cycle_time = #{cycleTime},</if> |
|
|
|
<if test="timeType != null and timeType != ''">time_type = #{timeType},</if> |
|
|
|
<if test="existAlarm != null ">exist_alarm = #{existAlarm},</if> |
|
|
|
<if test="alarmType != null and alarmType != ''">alarm_type = #{alarmType},</if> |
|
|
|
<if test="status != null ">status = #{status},</if> |
|
|
|
|