insert into contract_partya( party_a,a_link,a_contacts,partya_id,store_id ) values ( #{partyA},#{aLink},#{aContacts},#{partyaId},#{storeId} ) update contract_partya t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.party_a= #{partyA} , t.a_link= #{aLink} , t.a_contacts= #{aContacts} , t.store_id= #{storeId} where 1=1 and t.partya_id= #{partyaId}