insert into contract_partya(party_a, a_link, a_contacts, partya_id, store_id,type_id, community_id)
values (#{partyA}, #{aLink}, #{aContacts}, #{partyaId}, #{storeId},#{typeId},#{communityId})
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}
, t.type_id= #{typeId}
, t.community_id = #{communityId}
where 1=1
and t.partya_id= #{partyaId}