| 1234567891011121314151617181920212223242526272829 |
- <?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.usoftchina.saas.mail.mapper.MailTemplateMapper">
- <insert id="insert" parameterType="com.usoftchina.saas.mail.po.MailTemplate">
- insert into `m_template`(`id`,`subject`,`text`)
- values (#{id,jdbcType=VARCHAR},#{subject,jdbcType=VARCHAR},#{text,jdbcType=VARCHAR})
- </insert>
- <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.mail.po.MailTemplate">
- update `m_template` set `subject`=#{subject,jdbcType=VARCHAR},`text`=#{text,jdbcType=VARCHAR}
- where `id`=#{id,jdbcType=VARCHAR}
- </update>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from `m_template` where `id`=#{id}
- </delete>
- <resultMap id="BaseResultMap" type="com.usoftchina.saas.mail.po.MailTemplate">
- <id column="id" jdbcType="VARCHAR" property="id"/>
- <result column="subject" jdbcType="VARCHAR" property="subject"/>
- <result column="text" jdbcType="VARCHAR" property="text"/>
- </resultMap>
- <sql id="baseColumns">
- `id`,`subject`,`text`
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select <include refid="baseColumns"/> from `m_template` where `id`=#{id}
- </select>
- </mapper>
|