OrderItemMapper.xml 1023 B

1234567891011121314151617181920212223
  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.OrderItemMapper">
  6. <resultMap id="BaseResultMap" type="com.zt.pojo.OrderItem">
  7. <id property="id" column="id" jdbcType="BIGINT"/>
  8. <result property="orderId" column="order_id" jdbcType="BIGINT"/>
  9. <result property="goodsId" column="goods_id" jdbcType="BIGINT"/>
  10. <result property="num" column="num" jdbcType="INTEGER"/>
  11. <result property="price" column="price" jdbcType="DECIMAL"/>
  12. <result property="userId" column="user_id" jdbcType="BIGINT"/>
  13. <result property="totalPrice" column="total_price" jdbcType="DECIMAL"/>
  14. <result property="state" column="state" jdbcType="INTEGER"/>
  15. </resultMap>
  16. <sql id="Base_Column_List">
  17. id,order_id,goods_id,
  18. num,price,user_id,
  19. total_price,state
  20. </sql>
  21. </mapper>