insert into ten_room
room_id,
build_id,
cell_id,
room_number,
room_name,
layer,
area,
type,
person_count,
room_password,
room_count,
living_count,
kitchen_count,
bath_count,
balcony_count,
picture,
create_by,
create_time,
last_update_by,
last_update_time,
remark,
delete_flag,
tenant_id,
#{roomId,jdbcType=BIGINT},
#{buildId,jdbcType=BIGINT},
#{cellId,jdbcType=BIGINT},
#{roomNumber,jdbcType=INTEGER},
#{roomName,jdbcType=VARCHAR},
#{layer,jdbcType=INTEGER},
#{area,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT},
#{personCount,jdbcType=INTEGER},
#{roomPassword,jdbcType=VARCHAR},
#{roomCount,jdbcType=TINYINT},
#{livingCount,jdbcType=TINYINT},
#{kitchenCount,jdbcType=TINYINT},
#{bathCount,jdbcType=TINYINT},
#{balconyCount,jdbcType=TINYINT},
#{picture,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{lastUpdateBy,jdbcType=VARCHAR},
#{lastUpdateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR},
#{deleteFlag,jdbcType=TINYINT},
#{tenantId,jdbcType=BIGINT},
update ten_room
room_id = #{roomId,jdbcType=BIGINT},
build_id = #{buildId,jdbcType=BIGINT},
cell_id = #{cellId,jdbcType=BIGINT},
room_number = #{roomNumber,jdbcType=INTEGER},
room_name = #{roomName,jdbcType=VARCHAR},
layer = #{layer,jdbcType=INTEGER},
area = #{area,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
person_count = #{personCount,jdbcType=INTEGER},
room_password = #{roomPassword,jdbcType=VARCHAR},
room_count = #{roomCount,jdbcType=TINYINT},
living_count = #{livingCount,jdbcType=TINYINT},
kitchen_count = #{kitchenCount,jdbcType=TINYINT},
bath_count = #{bathCount,jdbcType=TINYINT},
balcony_count = #{balconyCount,jdbcType=TINYINT},
picture = #{picture,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
last_update_by = #{lastUpdateBy,jdbcType=VARCHAR},
last_update_time = #{lastUpdateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
delete_flag = #{deleteFlag,jdbcType=TINYINT},
tenant_id = #{tenantId,jdbcType=BIGINT},
where room_id = #{roomId,jdbcType=BIGINT}
delete from ten_room
where room_id = #{roomId,jdbcType=BIGINT}
update ten_room_$ set delete_flag = 1
where room_id = #{roomId,jdbcType=BIGINT}
update ten_room set delete_flag = 1
where build_id = #{buildId,jdbcType=BIGINT}
update ten_room set delete_flag = 1
where cell_id = #{cellId,jdbcType=BIGINT}