|
|
<?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.yohoufo.order.dal.SellerOrderGoodsMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.order.dal.model.SellerOrderGoods">
|
|
|
<mapper namespace="com.yohoufo.dal.order].SellerOrderGoodsMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.SellerOrderGoods">
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="product_id" jdbcType="INTEGER" property="productId" />
|
|
|
<result column="product_name" jdbcType="VARCHAR" property="productName" />
|
...
|
...
|
@@ -35,7 +35,7 @@ |
|
|
delete from seller_order_goods
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.order.dal.model.SellerOrderGoods" useGeneratedKeys="true">
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerOrderGoods" useGeneratedKeys="true">
|
|
|
insert into seller_order_goods (product_id, product_name, storage_id,
|
|
|
depot_no, size_id, size_name,
|
|
|
goods_id, color_id, color_name,
|
...
|
...
|
@@ -118,7 +118,7 @@ |
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.order.dal.model.SellerOrderGoods">
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.SellerOrderGoods">
|
|
|
update seller_order_goods
|
|
|
<set>
|
|
|
<if test="productId != null">
|
...
|
...
|
|