|
|
@@ -17,6 +17,7 @@
|
|
|
<result column="is_on_sale" jdbcType="BIT" property="isOnSale" />
|
|
|
<result column="sort_order" jdbcType="SMALLINT" property="sortOrder" />
|
|
|
<result column="pic_url" jdbcType="VARCHAR" property="picUrl" />
|
|
|
+ <result column="share_url" jdbcType="VARCHAR" property="shareUrl" />
|
|
|
<result column="is_new" jdbcType="BIT" property="isNew" />
|
|
|
<result column="is_hot" jdbcType="BIT" property="isHot" />
|
|
|
<result column="unit" jdbcType="VARCHAR" property="unit" />
|
|
|
@@ -143,8 +144,8 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
|
|
|
- sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
|
|
|
- deleted, version
|
|
|
+ sort_order, pic_url, share_url, is_new, is_hot, unit, counter_price, retail_price,
|
|
|
+ add_time, deleted, version
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
<!--
|
|
|
@@ -209,8 +210,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
|
|
|
- sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
|
|
|
- deleted, version, detail
|
|
|
+ sort_order, pic_url, share_url, is_new, is_hot, unit, counter_price, retail_price,
|
|
|
+ add_time, deleted, version, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|
|
|
@@ -274,8 +275,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
|
|
|
- sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
|
|
|
- deleted, version, detail
|
|
|
+ sort_order, pic_url, share_url, is_new, is_hot, unit, counter_price, retail_price,
|
|
|
+ add_time, deleted, version, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|
|
|
@@ -310,15 +311,15 @@
|
|
|
insert into litemall_goods (goods_sn, `name`, category_id,
|
|
|
brand_id, gallery,
|
|
|
keywords, brief, is_on_sale,
|
|
|
- sort_order, pic_url, is_new,
|
|
|
- is_hot, unit, counter_price,
|
|
|
+ sort_order, pic_url, share_url,
|
|
|
+ is_new, is_hot, unit, counter_price,
|
|
|
retail_price, add_time, deleted,
|
|
|
version, detail)
|
|
|
values (#{goodsSn,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{categoryId,jdbcType=INTEGER},
|
|
|
#{brandId,jdbcType=INTEGER}, #{gallery,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler},
|
|
|
#{keywords,jdbcType=VARCHAR}, #{brief,jdbcType=VARCHAR}, #{isOnSale,jdbcType=BIT},
|
|
|
- #{sortOrder,jdbcType=SMALLINT}, #{picUrl,jdbcType=VARCHAR}, #{isNew,jdbcType=BIT},
|
|
|
- #{isHot,jdbcType=BIT}, #{unit,jdbcType=VARCHAR}, #{counterPrice,jdbcType=DECIMAL},
|
|
|
+ #{sortOrder,jdbcType=SMALLINT}, #{picUrl,jdbcType=VARCHAR}, #{shareUrl,jdbcType=VARCHAR},
|
|
|
+ #{isNew,jdbcType=BIT}, #{isHot,jdbcType=BIT}, #{unit,jdbcType=VARCHAR}, #{counterPrice,jdbcType=DECIMAL},
|
|
|
#{retailPrice,jdbcType=DECIMAL}, #{addTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT},
|
|
|
#{version,jdbcType=INTEGER}, #{detail,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
@@ -362,6 +363,9 @@
|
|
|
<if test="picUrl != null">
|
|
|
pic_url,
|
|
|
</if>
|
|
|
+ <if test="shareUrl != null">
|
|
|
+ share_url,
|
|
|
+ </if>
|
|
|
<if test="isNew != null">
|
|
|
is_new,
|
|
|
</if>
|
|
|
@@ -421,6 +425,9 @@
|
|
|
<if test="picUrl != null">
|
|
|
#{picUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="shareUrl != null">
|
|
|
+ #{shareUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="isNew != null">
|
|
|
#{isNew,jdbcType=BIT},
|
|
|
</if>
|
|
|
@@ -500,6 +507,9 @@
|
|
|
<if test="record.picUrl != null">
|
|
|
pic_url = #{record.picUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.shareUrl != null">
|
|
|
+ share_url = #{record.shareUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.isNew != null">
|
|
|
is_new = #{record.isNew,jdbcType=BIT},
|
|
|
</if>
|
|
|
@@ -549,6 +559,7 @@
|
|
|
is_on_sale = #{record.isOnSale,jdbcType=BIT},
|
|
|
sort_order = #{record.sortOrder,jdbcType=SMALLINT},
|
|
|
pic_url = #{record.picUrl,jdbcType=VARCHAR},
|
|
|
+ share_url = #{record.shareUrl,jdbcType=VARCHAR},
|
|
|
is_new = #{record.isNew,jdbcType=BIT},
|
|
|
is_hot = #{record.isHot,jdbcType=BIT},
|
|
|
unit = #{record.unit,jdbcType=VARCHAR},
|
|
|
@@ -579,6 +590,7 @@
|
|
|
is_on_sale = #{record.isOnSale,jdbcType=BIT},
|
|
|
sort_order = #{record.sortOrder,jdbcType=SMALLINT},
|
|
|
pic_url = #{record.picUrl,jdbcType=VARCHAR},
|
|
|
+ share_url = #{record.shareUrl,jdbcType=VARCHAR},
|
|
|
is_new = #{record.isNew,jdbcType=BIT},
|
|
|
is_hot = #{record.isHot,jdbcType=BIT},
|
|
|
unit = #{record.unit,jdbcType=VARCHAR},
|
|
|
@@ -628,6 +640,9 @@
|
|
|
<if test="picUrl != null">
|
|
|
pic_url = #{picUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="shareUrl != null">
|
|
|
+ share_url = #{shareUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="isNew != null">
|
|
|
is_new = #{isNew,jdbcType=BIT},
|
|
|
</if>
|
|
|
@@ -674,6 +689,7 @@
|
|
|
is_on_sale = #{isOnSale,jdbcType=BIT},
|
|
|
sort_order = #{sortOrder,jdbcType=SMALLINT},
|
|
|
pic_url = #{picUrl,jdbcType=VARCHAR},
|
|
|
+ share_url = #{shareUrl,jdbcType=VARCHAR},
|
|
|
is_new = #{isNew,jdbcType=BIT},
|
|
|
is_hot = #{isHot,jdbcType=BIT},
|
|
|
unit = #{unit,jdbcType=VARCHAR},
|
|
|
@@ -701,6 +717,7 @@
|
|
|
is_on_sale = #{isOnSale,jdbcType=BIT},
|
|
|
sort_order = #{sortOrder,jdbcType=SMALLINT},
|
|
|
pic_url = #{picUrl,jdbcType=VARCHAR},
|
|
|
+ share_url = #{shareUrl,jdbcType=VARCHAR},
|
|
|
is_new = #{isNew,jdbcType=BIT},
|
|
|
is_hot = #{isHot,jdbcType=BIT},
|
|
|
unit = #{unit,jdbcType=VARCHAR},
|
|
|
@@ -762,8 +779,8 @@
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
id, goods_sn, `name`, category_id, brand_id, gallery, keywords, brief, is_on_sale,
|
|
|
- sort_order, pic_url, is_new, is_hot, unit, counter_price, retail_price, add_time,
|
|
|
- deleted, version, detail
|
|
|
+ sort_order, pic_url, share_url, is_new, is_hot, unit, counter_price, retail_price,
|
|
|
+ add_time, deleted, version, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|