| | |
| | | { |
| | | return await _wcsDeviceRep.Context.Queryable<WcsPlc>() |
| | | .Where(w => w.Type == PLCTypeEnum.RobotPalletizer || w.Type == PLCTypeEnum.StackingRobot) |
| | | .OrderBy(o => o.Type) |
| | | .OrderByDescending(o => o.Type) |
| | | .Select(u => new |
| | | { |
| | | id = u.Id, |
| | |
| | | } |
| | | ).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 |
| | | } |