insert into u_org_staff_rel(
rel_id,store_id,org_id,staff_id,rel_cd,b_id
) values (
#{relId},#{storeId},#{orgId},#{staffId},#{relCd},#{bId}
)
update u_org_staff_rel t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.store_id= #{storeId}
, t.org_id= #{orgId}
, t.staff_id= #{staffId}
, t.rel_cd= #{relCd}
where 1=1
and t.rel_id= #{relId}