insert into building_owner(id_card, sex, link, owner_type_cd, remark, owner_id, user_id, name, state, community_id, age, member_id, address,person_type,person_role,concact_person, concact_link,face_url,other_address,property_certificate_no,is_ev_charger_installed,household_police_station) values (#{idCard}, #{sex}, #{link}, #{ownerTypeCd}, #{remark}, #{ownerId}, #{userId}, #{name}, #{state}, #{communityId}, #{age}, #{memberId}, #{address},#{personType},#{personRole},#{concactPerson},#{concactLink}, #{faceUrl},#{otherAddress},#{propertyCertificateNo},#{isEvChargerInstalled},#{householdPoliceStation}) update building_owner t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} ,t.id_card= #{idCard} ,t.sex= #{sex} ,t.link= #{link} ,t.address= #{address} ,t.other_address= #{otherAddress} ,t.owner_type_cd= #{ownerTypeCd} ,t.remark= #{remark} ,t.owner_id= #{ownerId} ,t.user_id= #{userId} ,t.name= #{name} ,t.state= #{state} ,t.age= #{age} , t.person_type= #{personType} , t.person_role= #{personRole} , t.concact_person= #{concactPerson} , t.concact_link= #{concactLink} , t.face_url= #{faceUrl} where 1=1 and t.member_id= #{memberId} and t.community_id= #{communityId} insert into owner_collection(owner_id, room_id, collection_start_date, collection_end_date, amount, first_collector, second_collector_name, second_collector_phone, second_collector_address, receipt_number, receipt_photo_url, remark, create_time, update_time) values (#{ownerId}, #{roomId}, #{collectionStartDate}, #{collectionEndDate}, #{amount}, #{firstCollector}, #{secondCollectorName}, #{secondCollectorPhone}, #{secondCollectorAddress}, #{receiptNumber}, #{receiptPhotoUrl}, #{remark}, #{createTime}, #{updateTime}) update owner_collection t set t.owner_id = #{ownerId}, t.room_id = #{roomId}, t.collection_start_date = #{collectionStartDate}, t.collection_end_date = #{collectionEndDate}, t.amount = #{amount}, t.first_collector = #{firstCollector}, t.second_collector_name = #{secondCollectorName}, t.second_collector_phone = #{secondCollectorPhone}, t.second_collector_address = #{secondCollectorAddress}, t.receipt_number = #{receiptNumber}, t.receipt_photo_url = #{receiptPhotoUrl}, t.remark = #{remark}, t.update_time = #{updateTime} where collection_id = #{collectionId}