select id, company_id, contact_person, contact_person_phone, del_flag, create_by, create_time, update_by, update_time, remark from company_contact INSERT INTO company_contact ( company_id, contact_person, contact_person_phone, create_by, create_time, del_flag,remark ) VALUES ( #{item.companyId}, #{item.contactPerson}, #{item.contactPersonPhone}, #{item.createBy}, #{item.createTime}, #{item.delFlag},#{item.remark} ) UPDATE company_contact SET contact_person = CASE WHEN id = #{item.id} THEN #{item.contactPerson} ELSE contact_person END, contact_person_phone = CASE WHEN id = #{item.id} THEN #{item.contactPersonPhone} ELSE contact_person_phone END, update_by = CASE WHEN id = #{item.id} THEN #{item.updateBy} ELSE update_by END, update_time = CASE WHEN id = #{item.id} THEN NOW() ELSE update_time END, remark = CASE WHEN id = #{item.id} THEN #{item.remark} ELSE remark END WHERE id IN #{item.id}