data_list = [{"id": id, "first_order_time": start_time} for id, start_time in result]
 data_list_slice = data_list[start * one_time:(start + 1) * one_time]
                    dao_session.session.time_db().execute("""
                    INSERT INTO t_ebike_operation_move_after_order
                        (id,first_order_time, one_move_id, car_id,operator, phone, service_id) 
                        VALUES (:id, :first_order_time, 0, 100600001, "test", "15827555754", 0) ON DUPLICATE KEY UPDATE 
                        first_order_time=values(first_order_time)
                    """, data_list_slice)
                    dao_session.session.time_db().commit()

参考:https://segmentfault.com/a/1190000042750099