|
|
|
@ -11,6 +11,10 @@
|
|
|
|
|
<result column="comment_hierarchy" jdbcType="INTEGER" property="commentHierarchy" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
|
|
|
|
<result column="comment_id" jdbcType="INTEGER" property="commentId" />
|
|
|
|
|
<result column="give_the_thumbs_up" jdbcType="INTEGER" property="giveTheThumbsUp" />
|
|
|
|
|
<result column="reply_frequency" jdbcType="INTEGER" property="replyFrequency" />
|
|
|
|
|
<result column="report_frequency" jdbcType="INTEGER" property="reportFrequency" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.trade.entity.StuGoodsCommentInfo">
|
|
|
|
|
<result column="image_upload" jdbcType="LONGVARCHAR" property="imageUpload" />
|
|
|
|
@ -75,7 +79,8 @@
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, order_number, goods_rating, goods_comment, anonymous_evaluation, create_time,
|
|
|
|
|
comment_hierarchy, user_id, goods_id
|
|
|
|
|
comment_hierarchy, user_id, goods_id, comment_id, give_the_thumbs_up, reply_frequency,
|
|
|
|
|
report_frequency
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
image_upload
|
|
|
|
@ -132,11 +137,13 @@
|
|
|
|
|
insert into stu_goods_comment_info (id, order_number, goods_rating,
|
|
|
|
|
goods_comment, anonymous_evaluation, create_time,
|
|
|
|
|
comment_hierarchy, user_id, goods_id,
|
|
|
|
|
image_upload)
|
|
|
|
|
comment_id, give_the_thumbs_up, reply_frequency,
|
|
|
|
|
report_frequency, image_upload)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNumber,jdbcType=VARCHAR}, #{goodsRating,jdbcType=INTEGER},
|
|
|
|
|
#{goodsComment,jdbcType=VARCHAR}, #{anonymousEvaluation,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{commentHierarchy,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
#{imageUpload,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{commentId,jdbcType=INTEGER}, #{giveTheThumbsUp,jdbcType=INTEGER}, #{replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
#{reportFrequency,jdbcType=INTEGER}, #{imageUpload,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuGoodsCommentInfo">
|
|
|
|
|
insert into stu_goods_comment_info
|
|
|
|
@ -168,6 +175,18 @@
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
goods_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentId != null">
|
|
|
|
|
comment_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="giveTheThumbsUp != null">
|
|
|
|
|
give_the_thumbs_up,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="replyFrequency != null">
|
|
|
|
|
reply_frequency,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportFrequency != null">
|
|
|
|
|
report_frequency,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imageUpload != null">
|
|
|
|
|
image_upload,
|
|
|
|
|
</if>
|
|
|
|
@ -200,6 +219,18 @@
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
#{goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentId != null">
|
|
|
|
|
#{commentId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="giveTheThumbsUp != null">
|
|
|
|
|
#{giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="replyFrequency != null">
|
|
|
|
|
#{replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportFrequency != null">
|
|
|
|
|
#{reportFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imageUpload != null">
|
|
|
|
|
#{imageUpload,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -241,6 +272,18 @@
|
|
|
|
|
<if test="record.goodsId != null">
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.commentId != null">
|
|
|
|
|
comment_id = #{record.commentId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.giveTheThumbsUp != null">
|
|
|
|
|
give_the_thumbs_up = #{record.giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.replyFrequency != null">
|
|
|
|
|
reply_frequency = #{record.replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.reportFrequency != null">
|
|
|
|
|
report_frequency = #{record.reportFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.imageUpload != null">
|
|
|
|
|
image_upload = #{record.imageUpload,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -260,6 +303,10 @@
|
|
|
|
|
comment_hierarchy = #{record.commentHierarchy,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
|
|
|
|
comment_id = #{record.commentId,jdbcType=INTEGER},
|
|
|
|
|
give_the_thumbs_up = #{record.giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
reply_frequency = #{record.replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
report_frequency = #{record.reportFrequency,jdbcType=INTEGER},
|
|
|
|
|
image_upload = #{record.imageUpload,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -275,7 +322,11 @@
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
comment_hierarchy = #{record.commentHierarchy,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER}
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
|
|
|
|
comment_id = #{record.commentId,jdbcType=INTEGER},
|
|
|
|
|
give_the_thumbs_up = #{record.giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
reply_frequency = #{record.replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
report_frequency = #{record.reportFrequency,jdbcType=INTEGER}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -307,6 +358,18 @@
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentId != null">
|
|
|
|
|
comment_id = #{commentId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="giveTheThumbsUp != null">
|
|
|
|
|
give_the_thumbs_up = #{giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="replyFrequency != null">
|
|
|
|
|
reply_frequency = #{replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reportFrequency != null">
|
|
|
|
|
report_frequency = #{reportFrequency,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="imageUpload != null">
|
|
|
|
|
image_upload = #{imageUpload,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -323,6 +386,10 @@
|
|
|
|
|
comment_hierarchy = #{commentHierarchy,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
comment_id = #{commentId,jdbcType=INTEGER},
|
|
|
|
|
give_the_thumbs_up = #{giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
reply_frequency = #{replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
report_frequency = #{reportFrequency,jdbcType=INTEGER},
|
|
|
|
|
image_upload = #{imageUpload,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -335,7 +402,11 @@
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
comment_hierarchy = #{commentHierarchy,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER}
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
comment_id = #{commentId,jdbcType=INTEGER},
|
|
|
|
|
give_the_thumbs_up = #{giveTheThumbsUp,jdbcType=INTEGER},
|
|
|
|
|
reply_frequency = #{replyFrequency,jdbcType=INTEGER},
|
|
|
|
|
report_frequency = #{reportFrequency,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|