From 83a982e1e889cb8f6ba03cab92b222d83434a398 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期五, 06 九月 2024 16:55:50 +0800 Subject: [PATCH] 新增箱码明细表;开发分拣码垛绑定任务功能 --- Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs b/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs index 165dd6c..dce21ac 100644 --- a/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs +++ b/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs @@ -286,7 +286,7 @@ { 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, @@ -294,6 +294,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 } -- Gitblit v1.8.0