MessageTemplateMapper.xml 1.7 KB
<?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="cn.com.glsx.notify.modules.mapper.MessageTemplateMapper">
    <resultMap id="BaseResultMap" type="cn.com.glsx.notify.modules.entity.MessageTemplate">
        <!--
          WARNING - @mbg.generated
        -->
        <id column="id" jdbcType="BIGINT" property="id"/>
        <result column="template" jdbcType="VARCHAR" property="template"/>
        <result column="subject" jdbcType="VARCHAR" property="subject"/>
        <result column="content" jdbcType="VARCHAR" property="content"/>
        <result column="send_type" jdbcType="VARCHAR" property="sendType"/>
        <result column="source" jdbcType="VARCHAR" property="source"/>
        <result column="type" jdbcType="INTEGER" property="type"/>
        <result column="del_flag" jdbcType="INTEGER" property="delFlag"/>
        <result column="created_date" jdbcType="TIMESTAMP" property="createdDate"/>
        <result column="created_by" jdbcType="INTEGER" property="createdBy"/>
        <result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate"/>
        <result column="updated_by" jdbcType="INTEGER" property="updatedBy"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--
          WARNING - @mbg.generated
        -->
        id, `template`, subject, content, send_type, `source`, `type`, del_flag, created_date,
        created_by, updated_date, updated_by
    </sql>
    <select id="findByTemplate" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from t_message_template
        where template = #{template}
    </select>
</mapper>