From 637668ccd8a20772540eaf88ecf8b6eb098df5a1 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期四, 05 九月 2024 16:55:26 +0800
Subject: [PATCH] 新增WMS下发任务表,增加分拣任务菜单;绑定分拣码垛设备数据

---
 Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs b/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs
index 7b91e7e..3949be6 100644
--- a/Admin.NET/WCS.Application/Service/WcsDevice/WcsDeviceService.cs
+++ b/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
 }

--
Gitblit v1.8.0