select id, customer_name, sex, age, address, phone, filing_time, company_user_id, company_user_name, appointment_time, doctor_id, doctor_name, present_illness, current_medication, allergy_history, create_by, create_time, update_by, update_time, remark, del_flag, import_member_id, buy_count, claim_status, complete_status, dept_id, dept_name from fs_company_customer insert into fs_company_customer customer_name, sex, age, address, phone, filing_time, company_user_id, company_user_name, appointment_time, doctor_id, doctor_name, present_illness, current_medication, allergy_history, create_by, remark, import_member_id, buy_count, claim_status, complete_status, dept_id, dept_name, create_time #{customerName}, #{sex}, #{age}, #{address}, #{phone}, #{filingTime}, #{companyUserId}, #{companyUserName}, #{appointmentTime}, #{doctorId}, #{doctorName}, #{presentIllness}, #{currentMedication}, #{allergyHistory}, #{createBy}, #{remark}, #{importMemberId}, #{buyCount}, #{claimStatus}, #{completeStatus}, #{deptId}, #{deptName}, sysdate() INSERT IGNORE INTO fs_company_customer ( customer_name, phone, address, create_time, import_member_id, present_illness, current_medication, allergy_history, claim_status ) VALUES ( #{item.customerName}, #{item.phone}, #{item.address}, #{item.createTime}, #{item.importMemberId}, #{item.presentIllness}, #{item.currentMedication}, #{item.allergyHistory}, #{item.claimStatus} ) update fs_company_customer customer_name = #{customerName}, sex = #{sex}, age = #{age}, address = #{address}, phone = #{phone}, filing_time = #{filingTime}, company_user_id = #{companyUserId}, company_user_name = #{companyUserName}, appointment_time = #{appointmentTime}, doctor_id = #{doctorId}, doctor_name = #{doctorName}, present_illness = #{presentIllness}, current_medication = #{currentMedication}, allergy_history = #{allergyHistory}, remark = #{remark}, import_member_id = #{importMemberId}, buy_count = #{buyCount}, claim_status = #{claimStatus}, complete_status = #{completeStatus}, dept_id = #{deptId}, dept_name = #{deptName}, update_by = #{updateBy}, update_time = sysdate() where id = #{id} update fs_company_customer set del_flag = '2' where id = #{id} update fs_company_customer set del_flag = '2' where id in #{id} update fs_company_customer set company_user_id = #{targetDoctorId}, company_user_name = #{targetDoctorName}, update_time = sysdate() where del_flag = '0' and id in #{id} UPDATE fs_company_customer WHEN id = #{item.id} THEN #{item.presentIllness} WHEN id = #{item.id} THEN #{item.currentMedication} WHEN id = #{item.id} THEN #{item.allergyHistory} WHERE id IN #{item.id}