Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs
@@ -292,6 +292,20 @@ } ).ToListAsync(); } /// <summary> /// 获取设备对应工位列表 /// </summary> /// <param name="entry"></param> /// <returns></returns> [HttpGet] [ApiDescriptionSettings(Name = "WcsPackStationPlcList")] [DisplayName("获取设备对应工位列表")] public async Task<List<WcsDevice>> WcsPackStationPlcList([FromQuery]WcsDeviceBaseInput entry) { return await _wcsDeviceRep.Context.Queryable<WcsDevice>() .Where(w => w.PlcId == entry.PlcId) .OrderBy(o => o.CreateTime) .ToListAsync(); } #endregion }