|
@@ -3,7 +3,7 @@
|
|
<mapper namespace="com.slodon.b2b2c.dao.write.goods.GoodsRelatedTemplateWriteMapper">
|
|
<mapper namespace="com.slodon.b2b2c.dao.write.goods.GoodsRelatedTemplateWriteMapper">
|
|
<resultMap id="resultMap" type="com.slodon.b2b2c.goods.pojo.GoodsRelatedTemplate">
|
|
<resultMap id="resultMap" type="com.slodon.b2b2c.goods.pojo.GoodsRelatedTemplate">
|
|
<id column="template_id" property="templateId" />
|
|
<id column="template_id" property="templateId" />
|
|
- <result column="channel" property="channel" />
|
|
|
|
|
|
+ <result column="distribution_channel" property="distributionChannel" />
|
|
<result column="template_name" property="templateName" />
|
|
<result column="template_name" property="templateName" />
|
|
<result column="template_position" property="templatePosition" />
|
|
<result column="template_position" property="templatePosition" />
|
|
<result column="store_id" property="storeId" />
|
|
<result column="store_id" property="storeId" />
|
|
@@ -13,8 +13,8 @@
|
|
<!--除主键外的所有字段,用于插入操作-->
|
|
<!--除主键外的所有字段,用于插入操作-->
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
- <if test="channel != null">
|
|
|
|
- `channel`,
|
|
|
|
|
|
+ <if test="distributionChannel != null">
|
|
|
|
+ `distribution_channel`,
|
|
</if>
|
|
</if>
|
|
<if test="templateName != null">
|
|
<if test="templateName != null">
|
|
`template_name`,
|
|
`template_name`,
|
|
@@ -47,8 +47,8 @@
|
|
<if test="example.templateIdIn != null">
|
|
<if test="example.templateIdIn != null">
|
|
AND `template_id` in (${example.templateIdIn})
|
|
AND `template_id` in (${example.templateIdIn})
|
|
</if>
|
|
</if>
|
|
- <if test="example.channel != null">
|
|
|
|
- AND `channel` = #{example.channel}
|
|
|
|
|
|
+ <if test="example.distributionChannel != null">
|
|
|
|
+ AND `distribution_channel` = #{example.distributionChannel}
|
|
</if>
|
|
</if>
|
|
<if test="example.templateName != null">
|
|
<if test="example.templateName != null">
|
|
AND `template_name` = #{example.templateName}
|
|
AND `template_name` = #{example.templateName}
|
|
@@ -196,8 +196,8 @@
|
|
)
|
|
)
|
|
VALUES(
|
|
VALUES(
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
- <if test="channel != null">
|
|
|
|
- #{channel},
|
|
|
|
|
|
+ <if test="distributionChannel != null">
|
|
|
|
+ #{distributionChannel},
|
|
</if>
|
|
</if>
|
|
<if test="templateName != null">
|
|
<if test="templateName != null">
|
|
#{templateName},
|
|
#{templateName},
|
|
@@ -221,8 +221,8 @@
|
|
<update id="updateByExampleSelective">
|
|
<update id="updateByExampleSelective">
|
|
UPDATE `goods_related_template`
|
|
UPDATE `goods_related_template`
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="record.channel != null">
|
|
|
|
- `channel` = #{record.channel},
|
|
|
|
|
|
+ <if test="record.distributionChannel != null">
|
|
|
|
+ `distribution_channel` = #{record.distributionChannel},
|
|
</if>
|
|
</if>
|
|
<if test="record.templateName != null">
|
|
<if test="record.templateName != null">
|
|
`template_name` = #{record.templateName},
|
|
`template_name` = #{record.templateName},
|
|
@@ -246,8 +246,8 @@
|
|
<update id="updateByPrimaryKeySelective">
|
|
<update id="updateByPrimaryKeySelective">
|
|
UPDATE `goods_related_template`
|
|
UPDATE `goods_related_template`
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="channel != null">
|
|
|
|
- `channel` = #{channel},
|
|
|
|
|
|
+ <if test="distributionChannel != null">
|
|
|
|
+ `distribution_channel` = #{distributionChannel},
|
|
</if>
|
|
</if>
|
|
<if test="templateName != null">
|
|
<if test="templateName != null">
|
|
`template_name` = #{templateName},
|
|
`template_name` = #{templateName},
|