...
|
...
|
@@ -16,15 +16,15 @@ |
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from ufo_buyer_order_goods
|
|
|
from buyer_order_goods
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from ufo_buyer_order_goods
|
|
|
delete from buyer_order_goods
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
|
|
|
insert into ufo_buyer_order_goods (id, order_code, skup,
|
|
|
insert into buyer_order_goods (id, order_code, skup,
|
|
|
goods_price, goods_amount, uid,
|
|
|
coupon_cut_amount)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderCode,jdbcType=BIGINT}, #{skup,jdbcType=INTEGER},
|
...
|
...
|
@@ -32,7 +32,7 @@ |
|
|
#{couponCutAmount,jdbcType=DECIMAL})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
|
|
|
insert into ufo_buyer_order_goods
|
|
|
insert into buyer_order_goods
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
...
|
...
|
@@ -81,7 +81,7 @@ |
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
|
|
|
update ufo_buyer_order_goods
|
|
|
update buyer_order_goods
|
|
|
<set >
|
|
|
<if test="orderCode != null" >
|
|
|
order_code = #{orderCode,jdbcType=BIGINT},
|
...
|
...
|
@@ -105,7 +105,7 @@ |
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.search.dal.model.ufo_order.BuyerOrderGoods" >
|
|
|
update ufo_buyer_order_goods
|
|
|
update buyer_order_goods
|
|
|
set order_code = #{orderCode,jdbcType=BIGINT},
|
|
|
skup = #{skup,jdbcType=INTEGER},
|
|
|
goods_price = #{goodsPrice,jdbcType=DECIMAL},
|
...
|
...
|
@@ -118,7 +118,7 @@ |
|
|
<select id="selectBySkupList" resultMap="BaseResultMap" timeout="20000">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from ufo_buyer_order_goods
|
|
|
from buyer_order_goods
|
|
|
WHERE
|
|
|
skup in
|
|
|
<foreach item="item" index="index" collection="list"
|
...
|
...
|
|