insert into report_custom_component_rel(
rel_id,component_id,custom_id,seq
) values (
#{relId},#{componentId},#{customId},#{seq}
)
update report_custom_component_rel t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.component_id= #{componentId}
, t.custom_id= #{customId}
, t.seq= #{seq}
where 1=1
and t.rel_id= #{relId}