|
@@ -0,0 +1,51 @@
|
|
|
+<?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.zhentao.mapper.CouponUserMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.zhentao.pojo.CouponUser">
|
|
|
+ <id property="id" column="id" jdbcType="BIGINT"/>
|
|
|
+ <result property="userId" column="user_id" jdbcType="BIGINT"/>
|
|
|
+ <result property="userName" column="user_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
|
|
|
+ <result property="couponId" column="coupon_id" jdbcType="BIGINT"/>
|
|
|
+ <result property="couponName" column="coupon_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="couponTacticsType" column="coupon_tactics_type" jdbcType="INTEGER"/>
|
|
|
+ <result property="tacticsTypeDesc" column="tactics_type_desc" jdbcType="VARCHAR"/>
|
|
|
+ <result property="couponType" column="coupon_type" jdbcType="INTEGER"/>
|
|
|
+ <result property="productValue" column="product_value" jdbcType="VARCHAR"/>
|
|
|
+ <result property="limitMinFlag" column="limit_min_flag" jdbcType="INTEGER"/>
|
|
|
+ <result property="limitMin" column="limit_min" jdbcType="DECIMAL"/>
|
|
|
+ <result property="typeName" column="type_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="faceValue" column="face_value" jdbcType="DECIMAL"/>
|
|
|
+ <result property="imgUrl" column="img_url" jdbcType="VARCHAR"/>
|
|
|
+ <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="getTime" column="get_time" jdbcType="VARCHAR"/>
|
|
|
+ <result property="getWay" column="get_way" jdbcType="INTEGER"/>
|
|
|
+ <result property="usedTime" column="used_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="activeId" column="active_id" jdbcType="BIGINT"/>
|
|
|
+ <result property="status" column="status" jdbcType="INTEGER"/>
|
|
|
+ <result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
|
+ <result property="reversion" column="reversion" jdbcType="INTEGER"/>
|
|
|
+ <result property="statFlag" column="stat_flag" jdbcType="INTEGER"/>
|
|
|
+ <result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
|
|
|
+ <result property="isReceive" column="is_receive" jdbcType="INTEGER"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,user_id,user_name,
|
|
|
+ mobile,coupon_id,coupon_name,
|
|
|
+ coupon_tactics_type,tactics_type_desc,coupon_type,
|
|
|
+ product_value,limit_min_flag,limit_min,
|
|
|
+ type_name,face_value,img_url,
|
|
|
+ start_time,end_time,get_time,
|
|
|
+ get_way,used_time,active_id,
|
|
|
+ status,remark,reversion,
|
|
|
+ stat_flag,created_time,update_time,
|
|
|
+ del_flag,is_receive
|
|
|
+ </sql>
|
|
|
+</mapper>
|