diff --git a/ProductionSystem_Service/ProductStepService.cs b/ProductionSystem_Service/ProductStepService.cs index 0124ecb..3a17f0f 100644 --- a/ProductionSystem_Service/ProductStepService.cs +++ b/ProductionSystem_Service/ProductStepService.cs @@ -44,8 +44,8 @@ namespace ProductionSystem_Service return db.Queryable(). Where(m => m.StepName == stepName && m.EquipmentName == equipmentName - && m.ProductType == productType) - .Where(x=>x.ProductBarcode==productCode) + && m.ProductType == productType && m.ProductBarcode==productCode) + .OrderByDescending(x=>x.CreateTime) .First(); }