data.Orderdetails.Where(r => r.orderstatus == id && DateTime.Compare((DateTime)r.OrderTime, ”要比较的时间“) >= 0 && DateTime.Compare((DateTime)r.OrderTime, “要比较的时间”) <= 0).ToList();