insert into contract_room(
cr_id,owner_name,contract_id,owner_id,store_id,room_id,room_name
) values (
#{crId},#{ownerName},#{contractId},#{ownerId},#{storeId},#{roomId},#{roomName}
)
update contract_room t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.owner_name= #{ownerName}
, t.contract_id= #{contractId}
, t.owner_id= #{ownerId}
, t.store_id= #{storeId}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
where 1=1
and t.cr_id= #{crId}