UserOrderMapper.xml 1.6 KB

123456789101112131415161718192021222324252627282930
  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.zhentao.mapper.UserOrderMapper">
  6. <resultMap id="BaseResultMap" type="com.zhentao.domain.UserOrder">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="userId" column="user_id" jdbcType="BIGINT"/>
  9. <result property="totalAmount" column="total_amount" jdbcType="DECIMAL"/>
  10. <result property="discountAmount" column="discount_amount" jdbcType="DECIMAL"/>
  11. <result property="actualAmount" column="actual_amount" jdbcType="DECIMAL"/>
  12. <result property="couponId" column="coupon_id" jdbcType="VARCHAR"/>
  13. <result property="orderStatus" column="order_status" jdbcType="TINYINT"/>
  14. <result property="paymentStatus" column="payment_status" jdbcType="TINYINT"/>
  15. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  16. <result property="paymentTime" column="payment_time" jdbcType="TIMESTAMP"/>
  17. <result property="deliveryTime" column="delivery_time" jdbcType="TIMESTAMP"/>
  18. <result property="completeTime" column="complete_time" jdbcType="TIMESTAMP"/>
  19. <result property="cancelTime" column="cancel_time" jdbcType="TIMESTAMP"/>
  20. </resultMap>
  21. <sql id="Base_Column_List">
  22. id,user_id,total_amount,
  23. discount_amount,actual_amount,coupon_id,
  24. order_status,payment_status,create_time,
  25. payment_time,delivery_time,complete_time,
  26. cancel_time
  27. </sql>
  28. </mapper>