Blame view

parking-module-pay/src/main/resources/mybatis/smapper/TdCMsgTemplateSMapper.xml 1.4 KB
55f68655   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?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.zteits.pay.mapper.smapper.TdCMsgTemplateSMapper">
    <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCMsgTemplate">
      <id column="id" jdbcType="BIGINT" property="id" />
      <result column="template_id" jdbcType="VARCHAR" property="templateId" />
      <result column="template_title" jdbcType="VARCHAR" property="templateTitle" />
      <result column="template_content" jdbcType="VARCHAR" property="templateContent" />
      <result column="data_state" jdbcType="INTEGER" property="dataState" />
      <result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
      <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
      <result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
      <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
    </resultMap>
    <sql id="Base_Column_List">
      id, template_id, template_title, template_content, data_state, create_empid, create_date, 
      modfiy_empid, modfiy_date
    </sql>
    <select id="queryMsgTempleteByTempleteId" parameterType="java.lang.String" resultMap="BaseResultMap">
      select 
      <include refid="Base_Column_List" />
      from td_c_msg_template
      where template_id = #{templateId,jdbcType=VARCHAR}
    </select>
  </mapper>