You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.9 KiB
45 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.thing.alarm.alarm.mapper.AlarmRuleSettingMapper">
|
|
|
|
<resultMap type="com.thing.alarm.alarm.entity.AlarmRuleSettingEntity" id="alarmRuleSettingMap">
|
|
<result property="id" column="id"/>
|
|
<result property="settingType" column="setting_type"/>
|
|
<result property="settingIds" column="setting_ids"/>
|
|
<result property="actionType" column="action_type"/>
|
|
<result property="actionId" column="action_id"/>
|
|
<result property="tenantCode" column="tenant_code"/>
|
|
<result property="companyId" column="company_id"/>
|
|
<result property="deptId" column="dept_id"/>
|
|
<result property="creator" column="creator"/>
|
|
<result property="createDate" column="create_date"/>
|
|
<result property="updater" column="updater"/>
|
|
<result property="updateDate" column="update_date"/>
|
|
</resultMap>
|
|
|
|
<select id="getAlarmRuleSettingPageList" resultType="com.thing.alarm.alarm.dto.AlarmRuleActionPageDTO">
|
|
select
|
|
ars.id,
|
|
ars.action_type as actionType,
|
|
mps.receivers as receivers,
|
|
mps.name as pushName,
|
|
su.real_name as creator,
|
|
ars.create_date
|
|
from alarm_rule_setting ars
|
|
left join msg_push_setting mps on mps.id = ars.action_id
|
|
left join sys_user su on su.id = ars.creator
|
|
<where>
|
|
<if test="pushId != null">
|
|
and mps.id = #{pushId}
|
|
</if>
|
|
<if test="actionIdList != null">
|
|
AND ars.action_id IN
|
|
<foreach item="actionId" collection="actionIdList" open="(" separator="," close=")">
|
|
#{actionId}
|
|
</foreach>
|
|
</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|