insert into building_room( remark,room_area,room_sub_type,section,user_id,layer,room_id,fee_coefficient,built_up_area,room_num,unit_id,state,b_id,community_id,apartment,room_rent,room_type ) values ( #{remark},#{roomArea},#{roomSubType},#{section},#{userId},#{layer},#{roomId},#{feeCoefficient},#{builtUpArea},#{roomNum},#{unitId},#{state},#{bId},#{communityId},#{apartment},#{roomRent},#{roomType} ) update building_room t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.remark= #{remark} , t.room_area= #{roomArea} , t.room_sub_type= #{roomSubType} , t.section= #{section} , t.user_id= #{userId} , t.layer= #{layer} , t.fee_coefficient= #{feeCoefficient} , t.built_up_area= #{builtUpArea} , t.room_num= #{roomNum} , t.unit_id= #{unitId} , t.state= #{state} , t.community_id= #{communityId} , t.apartment= #{apartment} , t.room_rent= #{roomRent} , t.room_type= #{roomType} where 1=1 and t.room_id= #{roomId} and t.b_id= #{bId}