insert into owner_invoice( oi_id,invoice_name,owner_name,invoice_type,invoice_address,remark,owner_id,community_id,invoice_num, invoice_link,invoice_account ) values ( #{oiId},#{invoiceName},#{ownerName},#{invoiceType},#{invoiceAddress},#{remark},#{ownerId},#{communityId},#{invoiceNum}, #{invoiceLink},#{invoiceAccount} ) update owner_invoice t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.invoice_name= #{invoiceName} , t.owner_name= #{ownerName} , t.invoice_type= #{invoiceType} , t.invoice_address= #{invoiceAddress} , t.remark= #{remark} , t.owner_id= #{ownerId} , t.invoice_num= #{invoiceNum} , t.invoice_link= #{invoiceLink} , t.invoice_account= #{invoiceAccount} where 1=1 and t.oi_id= #{oiId} and t.community_id= #{communityId}