public static void SearchByTotalPrice() { Console.WriteLine("请输入要查询的订单金额:"); double totalPrice = Convert.ToDouble(Console.ReadLine()); List <Order> orders = service.QueryOrderByTotalPrice(totalPrice); if (orders.Count == 0) { Console.WriteLine("查询不到任何订单!"); return; } PrintResultType(orders); }