SellerOrderGoodsMapper.xml 1.34 KB
<?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.yoho.ufo.dal.SellerOrderGoodsMapper">
    <resultMap id="BaseResultMap" type="com.yoho.order.model.SellerOrderGoods">
      <result column="id" property="id" jdbcType="INTEGER" />
      <result column="product_id" property="productId" jdbcType="INTEGER" />
      <result column="product_name" property="productName" jdbcType="VARCHAR" />
      <result column="skup" property="skup" jdbcType="INTEGER" />
      <result column="depot_no" property="depotNo" jdbcType="INTEGER" />
      <result column="goods_id" property="goodsId" jdbcType="INTEGER" />
      <result column="color_id" property="colorId" jdbcType="SMALLINT" />
      <result column="color_name" property="colorName" jdbcType="VARCHAR" />
      <result column="goods_price" property="goodsPrice" jdbcType="DECIMAL" />
      <result column="status" property="status" jdbcType="TINYINT" />
    </resultMap>

    <sql id="Base_Column_List">
        id, product_id, product_name, skup, depot_no, goods_id, color_id, color_name, goods_price, status
    </sql>

    <select id="selectById" resultMap="BaseResultMap">
        select <include refid="Base_Column_List" />
        from seller_order_goods where id = #{id}
    </select>
    
</mapper>