|
|
|
@ -14,9 +14,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="collectTime" column="collect_time" />
|
|
|
|
|
<result property="energyType" column="energy_type" />
|
|
|
|
|
<result property="triggerRule" column="trigger_rule" />
|
|
|
|
|
<result property="triggerNumber" column="trigger_number" />
|
|
|
|
|
<result property="monitorField" column="monitor_field" />
|
|
|
|
|
<result property="timeRange" column="time_range" />
|
|
|
|
|
<result property="deviceOfflineTime" column="device_offline_time" />
|
|
|
|
|
<result property="triggerValue" column="trigger_value" />
|
|
|
|
|
<result property="notifyUser" column="notify_user" />
|
|
|
|
|
<result property="cause" column="cause" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
@ -35,9 +35,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
RAL.collect_time,
|
|
|
|
|
RAL.energy_type,
|
|
|
|
|
RAL.trigger_rule,
|
|
|
|
|
RAL.trigger_number,
|
|
|
|
|
RAL.monitor_field,
|
|
|
|
|
RAL.time_range,
|
|
|
|
|
RAL.device_offline_time,
|
|
|
|
|
RAL.trigger_value,
|
|
|
|
|
RAL.notify_user,
|
|
|
|
|
RAL.cause,
|
|
|
|
|
RAL.create_by,
|
|
|
|
@ -45,12 +45,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
RAL.update_by,
|
|
|
|
|
RAL.update_time,
|
|
|
|
|
BMI.monitor_code,
|
|
|
|
|
BMI.monitor_name,
|
|
|
|
|
SUSER.nick_name
|
|
|
|
|
BMI.monitor_name
|
|
|
|
|
FROM
|
|
|
|
|
ems_record_alarm_rule as RAL
|
|
|
|
|
left join ems_base_monitor_info as BMI on RAL.monitor_id = BMI.obj_id
|
|
|
|
|
left join sys_user as SUSER on RAL.notify_user = SUSER.user_id
|
|
|
|
|
left join ems_base_monitor_info as BMI on RAL.monitor_id = BMI.monitor_code
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEmsRecordAlarmRuleList" parameterType="EmsRecordAlarmRule" resultMap="EmsRecordAlarmRuleResult">
|
|
|
|
@ -62,9 +60,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="collectTime != null "> and RAL.collect_time = #{collectTime}</if>
|
|
|
|
|
<if test="energyType != null "> and RAL.energy_type = #{energyType}</if>
|
|
|
|
|
<if test="triggerRule != null "> and RAL.trigger_rule = #{triggerRule}</if>
|
|
|
|
|
<if test="triggerNumber != null "> and RAL.trigger_number = #{triggerNumber}</if>
|
|
|
|
|
<if test="monitorField != null "> and RAL.monitor_field = #{monitorField}</if>
|
|
|
|
|
<if test="timeRange != null "> and RAL.time_range = #{timeRange}</if>
|
|
|
|
|
<if test="deviceOfflineTime != null "> and RAL.device_offline_time = #{deviceOfflineTime}</if>
|
|
|
|
|
<if test="triggerValue != null "> and RAL.trigger_value = #{triggerValue}</if>
|
|
|
|
|
<if test="notifyUser != null and notifyUser != ''"> and RAL.notify_user = #{notifyUser}</if>
|
|
|
|
|
<if test="cause != null and cause != ''"> and RAL.cause = #{cause}</if>
|
|
|
|
|
</where>
|
|
|
|
@ -84,9 +82,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="collectTime != null">collect_time,</if>
|
|
|
|
|
<if test="energyType != null">energy_type,</if>
|
|
|
|
|
<if test="triggerRule != null">trigger_rule,</if>
|
|
|
|
|
<if test="triggerNumber != null">trigger_number,</if>
|
|
|
|
|
<if test="monitorField != null">monitor_field,</if>
|
|
|
|
|
<if test="timeRange != null">time_range,</if>
|
|
|
|
|
<if test="deviceOfflineTime != null">device_offline_time,</if>
|
|
|
|
|
<if test="triggerValue != null">trigger_value,</if>
|
|
|
|
|
<if test="notifyUser != null">notify_user,</if>
|
|
|
|
|
<if test="cause != null">cause,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
@ -101,9 +99,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="collectTime != null">#{collectTime},</if>
|
|
|
|
|
<if test="energyType != null">#{energyType},</if>
|
|
|
|
|
<if test="triggerRule != null">#{triggerRule},</if>
|
|
|
|
|
<if test="triggerNumber != null">#{triggerNumber},</if>
|
|
|
|
|
<if test="monitorField != null">#{monitorField},</if>
|
|
|
|
|
<if test="timeRange != null">#{timeRange},</if>
|
|
|
|
|
<if test="deviceOfflineTime != null">#{deviceOfflineTime},</if>
|
|
|
|
|
<if test="triggerValue != null">#{triggerValue},</if>
|
|
|
|
|
<if test="notifyUser != null">#{notifyUser},</if>
|
|
|
|
|
<if test="cause != null">#{cause},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
@ -122,9 +120,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="collectTime != null">collect_time = #{collectTime},</if>
|
|
|
|
|
<if test="energyType != null">energy_type = #{energyType},</if>
|
|
|
|
|
<if test="triggerRule != null">trigger_rule = #{triggerRule},</if>
|
|
|
|
|
<if test="triggerNumber != null">trigger_number = #{triggerNumber},</if>
|
|
|
|
|
<if test="monitorField != null">monitor_field = #{monitorField},</if>
|
|
|
|
|
<if test="timeRange != null">time_range = #{timeRange},</if>
|
|
|
|
|
<if test="deviceOfflineTime != null">device_offline_time = #{deviceOfflineTime},</if>
|
|
|
|
|
<if test="triggerValue != null">trigger_value = #{triggerValue},</if>
|
|
|
|
|
<if test="notifyUser != null">notify_user = #{notifyUser},</if>
|
|
|
|
|
<if test="cause != null">cause = #{cause},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|