|
|
|
@ -11,11 +11,12 @@
|
|
|
|
|
<result property="title" column="title" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
|
|
|
|
<result property="skuMap" column="sku_map" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
distribution_order_id,product_img_urls,product_id,
|
|
|
|
|
title,shop_id,sku_map
|
|
|
|
|
title,shop_id,sku_map,source_name
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
@ -46,10 +47,10 @@
|
|
|
|
|
<insert id="insert" keyColumn="distribution_order_id" keyProperty="distributionOrderId" parameterType="com.ms.dal.entity.MicroMoveProductItem" useGeneratedKeys="true">
|
|
|
|
|
insert into micro_move_product_item
|
|
|
|
|
( distribution_order_id,product_img_urls,product_id
|
|
|
|
|
,title,shop_id,sku_map
|
|
|
|
|
,title,shop_id,sku_map,source_name
|
|
|
|
|
)
|
|
|
|
|
values (#{distributionOrderId,jdbcType=BIGINT},#{productImgUrls,jdbcType=VARCHAR},#{productId,jdbcType=BIGINT}
|
|
|
|
|
,#{title,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT},#{skuMap,jdbcType=VARCHAR}
|
|
|
|
|
,#{title,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT},#{skuMap,jdbcType=VARCHAR},#{sourceName,jdbcType=VARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" keyColumn="distribution_order_id" keyProperty="distributionOrderId" parameterType="com.ms.dal.entity.MicroMoveProductItem" useGeneratedKeys="true">
|
|
|
|
@ -61,6 +62,7 @@
|
|
|
|
|
<if test="title != null">title,</if>
|
|
|
|
|
<if test="shopId != null">shop_id,</if>
|
|
|
|
|
<if test="skuMap != null">sku_map,</if>
|
|
|
|
|
<if test="sourceName != null">source_name,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="distributionOrderId != null">#{distributionOrderId,jdbcType=BIGINT},</if>
|
|
|
|
@ -69,6 +71,7 @@
|
|
|
|
|
<if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="skuMap != null">#{skuMap,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="sourceName != null">#{sourceName,jdbcType=VARCHAR},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.MicroMoveProductItem">
|
|
|
|
@ -89,6 +92,9 @@
|
|
|
|
|
<if test="skuMap != null">
|
|
|
|
|
sku_map = #{skuMap,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sourceName != null">
|
|
|
|
|
source_name = #{sourceName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
@ -100,6 +106,7 @@
|
|
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
|
sku_map = #{skuMap,jdbcType=VARCHAR}
|
|
|
|
|
source_name = #{sourceName,jdbcType=VARCHAR}
|
|
|
|
|
where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|