select id, personal_id, id_type, id_number, name, birthdate, gender, contact_phone, mobile_phone, registered_address, residential_address, payment_district, payment_district_name, township_street, community_village_school, unit_id, unit_name, personal_payment_amount, financial_subsidy_amount, total_amount, payment_time, payment_year, payer_category from patient_insurance_info insert into patient_insurance_info personal_id, id_type, id_number, name, birthdate, gender, contact_phone, mobile_phone, registered_address, residential_address, payment_district, payment_district_name, township_street, community_village_school, unit_id, unit_name, personal_payment_amount, financial_subsidy_amount, total_amount, payment_time, payment_year, payer_category, #{personalId}, #{idType}, #{idNumber}, #{name}, #{birthdate}, #{gender}, #{contactPhone}, #{mobilePhone}, #{registeredAddress}, #{residentialAddress}, #{paymentDistrict}, #{paymentDistrictName}, #{townshipStreet}, #{communityVillageSchool}, #{unitId}, #{unitName}, #{personalPaymentAmount}, #{financialSubsidyAmount}, #{totalAmount}, #{paymentTime}, #{paymentYear}, #{payerCategory}, INSERT INTO patient_insurance_info ( personal_id, id_type, id_number, name, birthdate, gender, contact_phone, mobile_phone, registered_address, residential_address, payment_district, payment_district_name, township_street, community_village_school, unit_id, unit_name, personal_payment_amount, financial_subsidy_amount, total_amount, payment_time, payment_year, payer_category ) VALUES ( #{item.personalId}, #{item.idType}, #{item.idNumber}, #{item.name}, #{item.birthdate}, #{item.gender}, #{item.contactPhone}, #{item.mobilePhone}, #{item.registeredAddress}, #{item.residentialAddress}, #{item.paymentDistrict}, #{item.paymentDistrictName}, #{item.townshipStreet}, #{item.communityVillageSchool}, #{item.unitId}, #{item.unitName}, #{item.personalPaymentAmount}, #{item.financialSubsidyAmount}, #{item.totalAmount}, #{item.paymentTime}, #{item.paymentYear}, #{item.payerCategory} ) update patient_insurance_info personal_id = #{personalId}, id_type = #{idType}, id_number = #{idNumber}, name = #{name}, birthdate = #{birthdate}, gender = #{gender}, contact_phone = #{contactPhone}, mobile_phone = #{mobilePhone}, registered_address = #{registeredAddress}, residential_address = #{residentialAddress}, payment_district = #{paymentDistrict}, payment_district_name = #{paymentDistrictName}, township_street = #{townshipStreet}, community_village_school = #{communityVillageSchool}, unit_id = #{unitId}, unit_name = #{unitName}, personal_payment_amount = #{personalPaymentAmount}, financial_subsidy_amount = #{financialSubsidyAmount}, total_amount = #{totalAmount}, payment_time = #{paymentTime}, payment_year = #{paymentYear}, payer_category = #{payerCategory}, where id = #{id} delete from patient_insurance_info where id = #{id} delete from patient_insurance_info where id in #{id}