|
|
@@ -30,7 +30,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- <result column="desc" jdbcType="LONGVARCHAR" property="desc" />
|
|
|
+ <result column="detail" jdbcType="LONGVARCHAR" property="detail" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -150,7 +150,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- `desc`
|
|
|
+ detail
|
|
|
</sql>
|
|
|
<select id="selectByExampleWithBLOBs" parameterType="org.linlinjava.litemall.db.domain.LitemallGoodsExample" resultMap="ResultMapWithBLOBs">
|
|
|
<!--
|
|
|
@@ -209,7 +209,7 @@
|
|
|
<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, `desc`
|
|
|
+ deleted, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|
|
|
@@ -274,7 +274,7 @@
|
|
|
<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, `desc`
|
|
|
+ deleted, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|
|
|
@@ -312,14 +312,14 @@
|
|
|
sort_order, pic_url, is_new,
|
|
|
is_hot, unit, counter_price,
|
|
|
retail_price, add_time, deleted,
|
|
|
- `desc`)
|
|
|
+ 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},
|
|
|
#{retailPrice,jdbcType=DECIMAL}, #{addTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT},
|
|
|
- #{desc,jdbcType=LONGVARCHAR})
|
|
|
+ #{detail,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="org.linlinjava.litemall.db.domain.LitemallGoods">
|
|
|
<!--
|
|
|
@@ -382,8 +382,8 @@
|
|
|
<if test="deleted != null">
|
|
|
deleted,
|
|
|
</if>
|
|
|
- <if test="desc != null">
|
|
|
- `desc`,
|
|
|
+ <if test="detail != null">
|
|
|
+ detail,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -438,8 +438,8 @@
|
|
|
<if test="deleted != null">
|
|
|
#{deleted,jdbcType=BIT},
|
|
|
</if>
|
|
|
- <if test="desc != null">
|
|
|
- #{desc,jdbcType=LONGVARCHAR},
|
|
|
+ <if test="detail != null">
|
|
|
+ #{detail,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -514,8 +514,8 @@
|
|
|
<if test="record.deleted != null">
|
|
|
deleted = #{record.deleted,jdbcType=BIT},
|
|
|
</if>
|
|
|
- <if test="record.desc != null">
|
|
|
- `desc` = #{record.desc,jdbcType=LONGVARCHAR},
|
|
|
+ <if test="record.detail != null">
|
|
|
+ detail = #{record.detail,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
@@ -546,7 +546,7 @@
|
|
|
retail_price = #{record.retailPrice,jdbcType=DECIMAL},
|
|
|
add_time = #{record.addTime,jdbcType=TIMESTAMP},
|
|
|
deleted = #{record.deleted,jdbcType=BIT},
|
|
|
- `desc` = #{record.desc,jdbcType=LONGVARCHAR}
|
|
|
+ detail = #{record.detail,jdbcType=LONGVARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -637,8 +637,8 @@
|
|
|
<if test="deleted != null">
|
|
|
deleted = #{deleted,jdbcType=BIT},
|
|
|
</if>
|
|
|
- <if test="desc != null">
|
|
|
- `desc` = #{desc,jdbcType=LONGVARCHAR},
|
|
|
+ <if test="detail != null">
|
|
|
+ detail = #{detail,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -666,7 +666,7 @@
|
|
|
retail_price = #{retailPrice,jdbcType=DECIMAL},
|
|
|
add_time = #{addTime,jdbcType=TIMESTAMP},
|
|
|
deleted = #{deleted,jdbcType=BIT},
|
|
|
- `desc` = #{desc,jdbcType=LONGVARCHAR}
|
|
|
+ detail = #{detail,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="org.linlinjava.litemall.db.domain.LitemallGoods">
|
|
|
@@ -746,7 +746,7 @@
|
|
|
<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, `desc`
|
|
|
+ deleted, detail
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
from litemall_goods
|