From f8f31ede7a7d550cf0cea943226bd521bd4274a8 Mon Sep 17 00:00:00 2001
From: Zhang-Hong-Lin <a3219986988@163.com>
Date: 星期二, 04 三月 2025 20:24:52 +0800
Subject: [PATCH] a

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_outstockinfoService.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_outstockinfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_outstockinfoService.cs"
index bbcd970..13d12e2 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_outstockinfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/dt_outstockinfoService.cs"
@@ -4,6 +4,7 @@
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseRepository;
 using WIDESEAWCS_Core.BaseServices;
 using WIDESEAWCS_ISystemServices;
@@ -22,5 +23,28 @@
         {
             _mapper = mapper;
         }
+
+        /// <summary>
+        /// 淇敼鍑哄簱鐗╂枡淇℃伅锛岄渶瑕佸嚭澶栬喘杩樻槸鑷骇
+        /// </summary>
+        /// <param name="batch"></param>
+        /// <returns></returns>
+        public WebResponseContent UpdateIsOutStock(int isout)
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                var isoutstock = BaseDal.QueryFirst(v => v.Id == 1);
+                isoutstock.isout = isout;
+                BaseDal.UpdateData(isoutstock);
+
+                content = WebResponseContent.Instance.OK();
+            }
+            catch (Exception ex)
+            {
+                content = WebResponseContent.Instance.Error($"淇敼鍏ュ簱鎵规鍙峰け璐�:銆恵ex.Message}銆�");
+            }
+            return content;
+        }
     }
 }

--
Gitblit v1.9.3