select bcs.suggestion_id, bcs.user_id, bcs.content, bcs.canteen_id, bcs.contact_tel, bcs.reply_content,
bcs.reply_state, bcs.reply_user_id, bcs.create_by, bcs.create_time, bcs.update_by, bcs.update_time,
bc.canteen_name
from basic_canteen_suggestion bcs
left join basic_canteen bc on bc.canteen_id = bcs.canteen_id
insert into basic_canteen_suggestion
user_id,
content,
canteen_id,
contact_tel,
reply_content,
reply_state,
reply_user_id,
create_by,
create_time,
update_by,
update_time,
#{userId},
#{content},
#{canteenId},
#{contactTel},
#{replyContent},
#{replyState},
#{replyUserId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update basic_canteen_suggestion
user_id = #{userId},
content = #{content},
canteen_id = #{canteenId},
contact_tel = #{contactTel},
reply_content = #{replyContent},
reply_state = #{replyState},
reply_user_id = #{replyUserId},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where suggestion_id = #{suggestionId}
delete from basic_canteen_suggestion where suggestion_id = #{suggestionId}
delete from basic_canteen_suggestion where suggestion_id in
#{suggestionId}