ZkOrderMapper.xml 1.3 KB

1234567891011121314151617181920212223242526
  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.ZkOrderMapper">
  6. <resultMap id="BaseResultMap" type="com.zt.pojo.ZkOrder">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="userId" column="user_id" jdbcType="BIGINT"/>
  9. <result property="goodsId" column="goods_id" jdbcType="BIGINT"/>
  10. <result property="totalPrice" column="total_price" jdbcType="DECIMAL"/>
  11. <result property="realPrice" column="real_price" jdbcType="DECIMAL"/>
  12. <result property="preferentialPrice" column="preferential_price" jdbcType="DECIMAL"/>
  13. <result property="orderState" column="order_state" jdbcType="INTEGER"/>
  14. <result property="paymentState" column="payment_state" jdbcType="INTEGER"/>
  15. <result property="orderTime" column="order_time" jdbcType="TIMESTAMP"/>
  16. <result property="paymentTime" column="payment_time" jdbcType="TIMESTAMP"/>
  17. </resultMap>
  18. <sql id="Base_Column_List">
  19. id,user_id,goods_id,
  20. total_price,real_price,preferential_price,
  21. order_state,payment_state,order_time,
  22. payment_time
  23. </sql>
  24. </mapper>