From 227f4259effd028b9c8d917c8e59a3e79a19d10f Mon Sep 17 00:00:00 2001
From: chenyong <chenyong@hnkhzn.com>
Date: 星期四, 15 五月 2025 09:18:09 +0800
Subject: [PATCH] 三楼大屏

---
 CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs |   67 ++++++++++++++++++++++++++++++---
 1 files changed, 60 insertions(+), 7 deletions(-)

diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
index 0ee302f..497571a 100644
--- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
+++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -1650,12 +1650,35 @@
 
     #endregion
 
+    #region 鏌ヨ闈欑疆绌洪棽搴撲綅
+    public WebResponseContent QueryLocationFreeJZ(string RoadwayNo)
+    {
+        WebResponseContent content = new WebResponseContent();
+        try
+        {
+            var result = _locationRepository.QueryData(x => x.EnalbeStatus != (int)EnableEnum.Disable && x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo.Contains("JZSC"));
+            LogFactory.GetLog($"闈欑疆{RoadwayNo}鏌ヨ绌洪棽搴撲綅").Info(true, $"{JsonConvert.SerializeObject(result)}");
+            if (result.Count > 5)
+            {
+                return content.OK();
+            }
+            return content.Error("搴撲綅宸叉弧");
+        }
+        catch (Exception ex)
+        {
+            return content.Error(ex.Message);
+        }
+    }
+
+    #endregion
+
     #region 澶у睆鎺ュ彛
 
     /// <summary>
     /// 鑾峰彇浠诲姟淇℃伅
     /// </summary>
     /// <returns></returns>
+    ///
     public WebResponseContent GetTaskInfo()
     {
         WebResponseContent content = new WebResponseContent();
@@ -1713,20 +1736,50 @@
             return content.Error(ex.Message);
         }
     }
+    /// <summary>
+    /// 鑾峰彇璐т綅鐘舵��
+    /// </summary>
+    /// <returns></returns>
+    public WebResponseContent GetStockQuantity() {
+        WebResponseContent content = new WebResponseContent();
+        try {
+            var location= _locationRepository.Db.Queryable<DtLocationInfo>().ToList();
 
+            return content.OK(data: location);
 
+        }
+        catch (Exception ex)
+        {
+            return content.Error(ex.Message);
+        }
+    }
+    public WebResponseContent Getproductionvolume()
+    {
+        WebResponseContent content = new WebResponseContent();
+        try {
+            var now = DateTime.Now;
+            var startOfDay = new DateTime(now.Year, now.Month, now.Day);
+            var endOfDay1 = startOfDay.AddDays(-7);
+            var taskHty= _task_HtyRepository.Db.Queryable<Dt_Task_Hty>().Where(it=>it.CreateDate> endOfDay1).ToList();
+            return content.OK(data: taskHty);
+        }
+        catch (Exception ex)
+        {
+            return content.Error(ex.Message);
+        }
 
+    }
     #endregion
 
-    #endregion 澶栭儴鎺ュ彛鏂规硶
+        #endregion 澶栭儴鎺ュ彛鏂规硶
 
-    #region 鍐呴儴璋冪敤鏂规硶
+        #region 鍐呴儴璋冪敤鏂规硶
 
-    /// <summary>
-    /// 鍒涘缓涓�涓柊鐨勪换鍔�
-    /// </summary>
-    /// <param name="model">浠诲姟妯″瀷</param>
-    /// <returns>鍒涘缓鐨勪换鍔�</returns>
+        /// <summary>
+        /// 鍒涘缓涓�涓柊鐨勪换鍔�
+        /// </summary>
+        /// <param name="model">浠诲姟妯″瀷</param>
+        /// <returns>鍒涘缓鐨勪换鍔�</returns>
     public async Task<Dt_Task> Create(Dt_Task model)
     {
         return await BaseDal.Create(model);

--
Gitblit v1.9.3