CouponMapper.xml 750 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zt.mapper.CouponMapper">
  6. <resultMap id="BaseResultMap" type="com.zt.pojo.Coupon">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="name" column="name" jdbcType="VARCHAR"/>
  9. <result property="faceValue" column="face_value" jdbcType="DECIMAL"/>
  10. <result property="terms" column="terms" jdbcType="DECIMAL"/>
  11. <result property="type" column="type" jdbcType="INTEGER"/>
  12. </resultMap>
  13. <sql id="Base_Column_List">
  14. id,name,face_value,
  15. terms,type
  16. </sql>
  17. </mapper>