ErpOrdersGoodsMapper.xml
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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.unions.dal.ErpOrdersGoodsMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.ErpOrdersGoods" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="order_code" property="orderCode" jdbcType="BIGINT" />
<result column="buy_number" property="buyNumber" jdbcType="SMALLINT" />
<result column="product_skc" property="productSkc" jdbcType="INTEGER" />
<result column="product_skn" property="productSkn" jdbcType="INTEGER" />
<result column="product_sku" property="productSku" jdbcType="INTEGER" />
<result column="size_id" property="sizeId" jdbcType="SMALLINT" />
<result column="size_name" property="sizeName" jdbcType="VARCHAR" />
<result column="color_id" property="colorId" jdbcType="TINYINT" />
<result column="color_name" property="colorName" jdbcType="VARCHAR" />
<result column="goods_type" property="goodsType" jdbcType="TINYINT" />
<result column="brand_id" property="brandId" jdbcType="INTEGER" />
<result column="sale_price" property="salePrice" jdbcType="DECIMAL" />
<result column="last_price" property="lastPrice" jdbcType="DECIMAL" />
<result column="real_price" property="realPrice" jdbcType="DECIMAL" />
<result column="get_yoho_coin" property="getYohoCoin" jdbcType="SMALLINT" />
<result column="fit_promotions" property="fitPromotions" jdbcType="VARCHAR" />
<result column="is_post" property="isPost" jdbcType="CHAR" />
<result column="is_jit" property="isJit" jdbcType="CHAR" />
<result column="shop_id" property="shopId" jdbcType="INTEGER" />
<result column="supplier_id" property="supplierId" jdbcType="INTEGER" />
<result column="coupons_discount_amount" property="couponsDiscountAmount" jdbcType="DECIMAL" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="parent_order_code" property="parentOrderCode" jdbcType="BIGINT" />
<result column="product_name" property="productName" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
id, uid, order_code, buy_number, product_skc, product_skn, product_sku, size_id,
size_name, color_id, color_name, goods_type, brand_id, sale_price, last_price, real_price,
get_yoho_coin, fit_promotions, is_post, is_jit, shop_id, supplier_id, coupons_discount_amount,
create_time, parent_order_code, product_name
</sql>
<select id="selectByOrderCode" resultMap="BaseResultMap" parameterType="java.lang.Long" >
select
<include refid="Base_Column_List" />
from orders_goods
where order_code = #{orderCode,jdbcType=BIGINT}
</select>
</mapper>