|
|
|
@ -12,11 +12,12 @@
|
|
|
|
|
<result property="shopId" column="shop_id" jdbcType="BIGINT"/>
|
|
|
|
|
<result property="skuMap" column="sku_map" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="sourceName" column="source_name" jdbcType="VARCHAR"/>
|
|
|
|
|
<result property="price" column="price" jdbcType="DECIMAL"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
distribution_order_id,product_img_urls,product_id,
|
|
|
|
|
title,shop_id,sku_map,source_name
|
|
|
|
|
title,shop_id,sku_map,source_name,price
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
@ -47,10 +48,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,source_name
|
|
|
|
|
,title,shop_id,sku_map,source_name,price
|
|
|
|
|
)
|
|
|
|
|
values (#{distributionOrderId,jdbcType=BIGINT},#{productImgUrls,jdbcType=VARCHAR},#{productId,jdbcType=BIGINT}
|
|
|
|
|
,#{title,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT},#{skuMap,jdbcType=VARCHAR},#{sourceName,jdbcType=VARCHAR}
|
|
|
|
|
,#{title,jdbcType=VARCHAR},#{shopId,jdbcType=BIGINT},#{skuMap,jdbcType=VARCHAR},#{sourceName,jdbcType=VARCHAR},#{price,jdbcType=DECIMAL}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" keyColumn="distribution_order_id" keyProperty="distributionOrderId" parameterType="com.ms.dal.entity.MicroMoveProductItem" useGeneratedKeys="true">
|
|
|
|
@ -63,6 +64,7 @@
|
|
|
|
|
<if test="shopId != null">shop_id,</if>
|
|
|
|
|
<if test="skuMap != null">sku_map,</if>
|
|
|
|
|
<if test="sourceName != null">source_name,</if>
|
|
|
|
|
<if test="price != null">price,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="distributionOrderId != null">#{distributionOrderId,jdbcType=BIGINT},</if>
|
|
|
|
@ -72,6 +74,7 @@
|
|
|
|
|
<if test="shopId != null">#{shopId,jdbcType=BIGINT},</if>
|
|
|
|
|
<if test="skuMap != null">#{skuMap,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="sourceName != null">#{sourceName,jdbcType=VARCHAR},</if>
|
|
|
|
|
<if test="price != null">#{price,jdbcType=DECIMAL},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ms.dal.entity.MicroMoveProductItem">
|
|
|
|
@ -95,6 +98,9 @@
|
|
|
|
|
<if test="sourceName != null">
|
|
|
|
|
source_name = #{sourceName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="price != null">
|
|
|
|
|
price = #{price,jdbcType=DECIMAL},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
@ -107,6 +113,7 @@
|
|
|
|
|
shop_id = #{shopId,jdbcType=BIGINT},
|
|
|
|
|
sku_map = #{skuMap,jdbcType=VARCHAR}
|
|
|
|
|
source_name = #{sourceName,jdbcType=VARCHAR}
|
|
|
|
|
price = #{price,jdbcType=DECIMAL}
|
|
|
|
|
where distribution_order_id = #{distributionOrderId,jdbcType=BIGINT}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|