and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, user_id, order_num, service_score, environment_score, taste_score, content, reply,
is_reply, reply_time, create_time, update_time, is_delete
delete from tb_comment
where id = #{id,jdbcType=INTEGER}
delete from tb_comment
SELECT LAST_INSERT_ID()
insert into tb_comment (user_id, order_num, service_score,
environment_score, taste_score, content,
reply, is_reply, reply_time,
create_time, update_time, is_delete
)
values (#{userId,jdbcType=INTEGER}, #{orderNum,jdbcType=VARCHAR}, #{serviceScore,jdbcType=INTEGER},
#{environmentScore,jdbcType=INTEGER}, #{tasteScore,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR},
#{reply,jdbcType=VARCHAR}, #{isReply,jdbcType=CHAR}, #{replyTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDelete,jdbcType=CHAR}
)
SELECT LAST_INSERT_ID()
insert into tb_comment
user_id,
order_num,
service_score,
environment_score,
taste_score,
content,
reply,
is_reply,
reply_time,
create_time,
update_time,
is_delete,
#{userId,jdbcType=INTEGER},
#{orderNum,jdbcType=VARCHAR},
#{serviceScore,jdbcType=INTEGER},
#{environmentScore,jdbcType=INTEGER},
#{tasteScore,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR},
#{reply,jdbcType=VARCHAR},
#{isReply,jdbcType=CHAR},
#{replyTime,jdbcType=TIMESTAMP},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{isDelete,jdbcType=CHAR},
update tb_comment
id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
order_num = #{record.orderNum,jdbcType=VARCHAR},
service_score = #{record.serviceScore,jdbcType=INTEGER},
environment_score = #{record.environmentScore,jdbcType=INTEGER},
taste_score = #{record.tasteScore,jdbcType=INTEGER},
content = #{record.content,jdbcType=VARCHAR},
reply = #{record.reply,jdbcType=VARCHAR},
is_reply = #{record.isReply,jdbcType=CHAR},
reply_time = #{record.replyTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR},
update tb_comment
set id = #{record.id,jdbcType=INTEGER},
user_id = #{record.userId,jdbcType=INTEGER},
order_num = #{record.orderNum,jdbcType=VARCHAR},
service_score = #{record.serviceScore,jdbcType=INTEGER},
environment_score = #{record.environmentScore,jdbcType=INTEGER},
taste_score = #{record.tasteScore,jdbcType=INTEGER},
content = #{record.content,jdbcType=VARCHAR},
reply = #{record.reply,jdbcType=VARCHAR},
is_reply = #{record.isReply,jdbcType=CHAR},
reply_time = #{record.replyTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_delete = #{record.isDelete,jdbcType=CHAR}
update tb_comment
user_id = #{userId,jdbcType=INTEGER},
order_num = #{orderNum,jdbcType=VARCHAR},
service_score = #{serviceScore,jdbcType=INTEGER},
environment_score = #{environmentScore,jdbcType=INTEGER},
taste_score = #{tasteScore,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
reply = #{reply,jdbcType=VARCHAR},
is_reply = #{isReply,jdbcType=CHAR},
reply_time = #{replyTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR},
where id = #{id,jdbcType=INTEGER}
update tb_comment
set user_id = #{userId,jdbcType=INTEGER},
order_num = #{orderNum,jdbcType=VARCHAR},
service_score = #{serviceScore,jdbcType=INTEGER},
environment_score = #{environmentScore,jdbcType=INTEGER},
taste_score = #{tasteScore,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
reply = #{reply,jdbcType=VARCHAR},
is_reply = #{isReply,jdbcType=CHAR},
reply_time = #{replyTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_delete = #{isDelete,jdbcType=CHAR}
where id = #{id,jdbcType=INTEGER}