insert into renting_pool_attr(
attr_id,spec_cd,value,renting_id
) values (
#{attrId},#{specCd},#{value},#{rentingId}
)
update renting_pool_attr t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.spec_cd= #{specCd}
, t.value= #{value}
, t.renting_id= #{rentingId}
where 1=1
and t.attr_id= #{attrId}