AlarmFlowMapper.xml 866 Bytes
<?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.huaheng.common.mail.alarmmail.mapper.AlarmFlowMapper">

    <select id="selectEntityByAlarmidList" resultType="com.huaheng.common.mail.alarmmail.domain.AlarmFlow">
        select  addressee , addresseeemail from alarm_flow where alarmid = #{alarmid} and grade &lt;= #{garade} and enable = true
    </select>

    <select id="getTypeList" resultType="com.huaheng.common.mail.alarmmail.domain.AlarmType">
        SELECT id,type FROM alarm_type  WHERE `enable` = TRUE GROUP BY type
    </select>

    <select id="getNameList" resultType="com.huaheng.common.mail.alarmmail.domain.AlarmType">
        SELECT id,type,name FROM alarm_type WHERE `enable` = TRUE AND type = #{type}
    </select>
</mapper>