...
|
...
|
@@ -19,15 +19,16 @@ |
|
|
<result column="batch_no" jdbcType="BIGINT" property="batchNo" />
|
|
|
<result column="num" jdbcType="INTEGER" property="num" />
|
|
|
<result column="skup_list" jdbcType="VARCHAR" property="skupList" />
|
|
|
<result column="attributes" jdbcType="INTEGER" property="attributes" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, uid, product_id, product_name, storage_id, depot_no, size_id, size_name,
|
|
|
color_id, color_name, goods_price, status, image_url, is_del, batch_no
|
|
|
color_id, color_name, goods_price, status, image_url, is_del, batch_no, attributes
|
|
|
</sql>
|
|
|
|
|
|
<sql id="Associated_Base_Column_List">
|
|
|
sog.id, sog.uid, sog.product_id, sog.product_name, sog.storage_id, sog.depot_no, sog.size_id, sog.size_name,
|
|
|
sog.color_id, sog.color_name, sog.goods_price, sog.status, sog.image_url, sog.is_del, sog.batch_no
|
|
|
sog.color_id, sog.color_name, sog.goods_price, sog.status, sog.image_url, sog.is_del, sog.batch_no, sog.attributes
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
|
|
|
select
|
...
|
...
|
@@ -192,6 +193,9 @@ |
|
|
<if test="batchNo != null">
|
|
|
batch_no,
|
|
|
</if>
|
|
|
<if test="attributes != null">
|
|
|
attributes,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="productId != null">
|
...
|
...
|
@@ -233,11 +237,12 @@ |
|
|
<if test="batchNo != null">
|
|
|
#{batchNo,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="attributes != null">
|
|
|
#{attributes,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateStatusBySkpu" parameterType="com.yohoufo.dal.order.model.SellerOrderGoods">
|
|
|
update seller_order_goods
|
|
|
<set>
|
...
|
...
|
|