123456789101112131415161718192021222324252627282930 |
- <?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.UserOrderMapper">
- <resultMap id="BaseResultMap" type="com.zhentao.domain.UserOrder">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="userId" column="user_id" jdbcType="BIGINT"/>
- <result property="totalAmount" column="total_amount" jdbcType="DECIMAL"/>
- <result property="discountAmount" column="discount_amount" jdbcType="DECIMAL"/>
- <result property="actualAmount" column="actual_amount" jdbcType="DECIMAL"/>
- <result property="couponId" column="coupon_id" jdbcType="VARCHAR"/>
- <result property="orderStatus" column="order_status" jdbcType="TINYINT"/>
- <result property="paymentStatus" column="payment_status" jdbcType="TINYINT"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="paymentTime" column="payment_time" jdbcType="TIMESTAMP"/>
- <result property="deliveryTime" column="delivery_time" jdbcType="TIMESTAMP"/>
- <result property="completeTime" column="complete_time" jdbcType="TIMESTAMP"/>
- <result property="cancelTime" column="cancel_time" jdbcType="TIMESTAMP"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,user_id,total_amount,
- discount_amount,actual_amount,coupon_id,
- order_status,payment_status,create_time,
- payment_time,delivery_time,complete_time,
- cancel_time
- </sql>
- </mapper>
|