`distribution_channel`,
`template_name`,
`template_position`,
`store_id`,
`create_vendor_id`,
`template_content`,
WHERE `template_id` = #{primaryKey}
AND `template_id` != #{example.templateIdNotEquals}
AND `template_id` in (${example.templateIdIn})
AND `distribution_channel` = #{example.distributionChannel}
AND `template_name` = #{example.templateName}
AND `template_name` like concat('%',#{example.templateNameLike},'%')
AND `template_position` = #{example.templatePosition}
AND `store_id` = #{example.storeId}
AND `create_vendor_id` = #{example.createVendorId}
AND `template_content` = #{example.templateContent}
AND `template_content` like concat('%',#{example.templateContentLike},'%')
ORDER BY `template_id` DESC
order by ${example.orderBy}
group by ${example.groupBy}
limit #{startRow},#{size}
DELETE FROM `goods_related_template`
DELETE FROM `goods_related_template`
INSERT INTO `goods_related_template`(
)
VALUES(
#{distributionChannel},
#{templateName},
#{templatePosition},
#{storeId},
#{createVendorId},
#{templateContent},
)
UPDATE `goods_related_template`
`distribution_channel` = #{record.distributionChannel},
`template_name` = #{record.templateName},
`template_position` = #{record.templatePosition},
`store_id` = #{record.storeId},
`create_vendor_id` = #{record.createVendorId},
`template_content` = #{record.templateContent},
UPDATE `goods_related_template`
`distribution_channel` = #{distributionChannel},
`template_name` = #{templateName},
`template_position` = #{templatePosition},
`store_id` = #{storeId},
`create_vendor_id` = #{createVendorId},
`template_content` = #{templateContent},
WHERE `template_id` = #{templateId}