select id, unit_name, occupant, entry_time, end_time, position, remark, create_by, create_time, update_by, update_time from single_dormitory insert into single_dormitory id, unit_name, occupant, entry_time, end_time, position, remark, create_by, create_time, update_by, update_time, #{id}, #{unitName}, #{occupant}, #{entryTime}, #{endTime}, #{position}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update single_dormitory unit_name = #{unitName}, occupant = #{occupant}, entry_time = #{entryTime}, end_time = #{endTime}, position = #{position}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} delete from single_dormitory where id = #{id} delete from single_dormitory where id in #{id}