|
|
@@ -10,6 +10,7 @@
|
|
|
<result column="value_id" jdbcType="INTEGER" property="valueId" />
|
|
|
<result column="type" jdbcType="TINYINT" property="type" />
|
|
|
<result column="content" jdbcType="VARCHAR" property="content" />
|
|
|
+ <result column="admin_content" jdbcType="VARCHAR" property="adminContent" />
|
|
|
<result column="user_id" jdbcType="INTEGER" property="userId" />
|
|
|
<result column="has_picture" jdbcType="BIT" property="hasPicture" />
|
|
|
<result column="pic_urls" jdbcType="VARCHAR" property="picUrls" typeHandler="org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler" />
|
|
|
@@ -127,7 +128,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- id, value_id, `type`, content, user_id, has_picture, pic_urls, star, add_time, update_time,
|
|
|
+ id, value_id, `type`, content, admin_content, user_id, has_picture, pic_urls, star, add_time, update_time,
|
|
|
deleted
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="org.linlinjava.litemall.db.domain.LitemallCommentExample" resultMap="BaseResultMap">
|
|
|
@@ -249,11 +250,11 @@
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
</selectKey>
|
|
|
- insert into litemall_comment (value_id, `type`, content,
|
|
|
+ insert into litemall_comment (value_id, `type`, content, admin_content,
|
|
|
user_id, has_picture, pic_urls,
|
|
|
star, add_time, update_time,
|
|
|
deleted)
|
|
|
- values (#{valueId,jdbcType=INTEGER}, #{type,jdbcType=TINYINT}, #{content,jdbcType=VARCHAR},
|
|
|
+ values (#{valueId,jdbcType=INTEGER}, #{type,jdbcType=TINYINT}, #{content,jdbcType=VARCHAR}, #{adminContent,jdbcType=VARCHAR},
|
|
|
#{userId,jdbcType=INTEGER}, #{hasPicture,jdbcType=BIT}, #{picUrls,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler},
|
|
|
#{star,jdbcType=SMALLINT}, #{addTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{deleted,jdbcType=BIT})
|
|
|
@@ -277,6 +278,9 @@
|
|
|
<if test="content != null">
|
|
|
content,
|
|
|
</if>
|
|
|
+ <if test="adminContent != null">
|
|
|
+ admin_content,
|
|
|
+ </if>
|
|
|
<if test="userId != null">
|
|
|
user_id,
|
|
|
</if>
|
|
|
@@ -361,6 +365,9 @@
|
|
|
<if test="record.content != null">
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.adminContent != null">
|
|
|
+ admin_content = #{record.adminContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.userId != null">
|
|
|
user_id = #{record.userId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -397,6 +404,7 @@
|
|
|
value_id = #{record.valueId,jdbcType=INTEGER},
|
|
|
`type` = #{record.type,jdbcType=TINYINT},
|
|
|
content = #{record.content,jdbcType=VARCHAR},
|
|
|
+ admin_content = #{record.adminContent,jdbcType=VARCHAR},
|
|
|
user_id = #{record.userId,jdbcType=INTEGER},
|
|
|
has_picture = #{record.hasPicture,jdbcType=BIT},
|
|
|
pic_urls = #{record.picUrls,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler},
|
|
|
@@ -424,6 +432,9 @@
|
|
|
<if test="content != null">
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="adminContent != null">
|
|
|
+ admin_content = #{adminContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="userId != null">
|
|
|
user_id = #{userId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -457,6 +468,7 @@
|
|
|
set value_id = #{valueId,jdbcType=INTEGER},
|
|
|
`type` = #{type,jdbcType=TINYINT},
|
|
|
content = #{content,jdbcType=VARCHAR},
|
|
|
+ admin_content = #{adminContent,jdbcType=VARCHAR},
|
|
|
user_id = #{userId,jdbcType=INTEGER},
|
|
|
has_picture = #{hasPicture,jdbcType=BIT},
|
|
|
pic_urls = #{picUrls,jdbcType=VARCHAR,typeHandler=org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler},
|