From b1c2dd1869a51b8f0e4acb9ddeb148f796db147f Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 25 六月 2025 19:10:58 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Dt_StationManagerService.cs |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Dt_StationManagerService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Dt_StationManagerService.cs"
index bcc92e3..2b2ad62 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Dt_StationManagerService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/Dt_StationManagerService.cs"
@@ -1,4 +1,5 @@
 锘縰sing WIDESEAWCS_BasicInfoRepository;
+using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseServices;
 using WIDESEAWCS_ISystemServices;
 using WIDESEAWCS_Model.Models;
@@ -13,5 +14,39 @@
         {
             _sys_ConfigService = sys_ConfigService;
         }
+
+        public WebResponseContent GetStation()
+        {
+            return WebResponseContent.Instance.OK(data: BaseDal.QueryData(x => x.stationRemark == "AGV鏀捐揣绔欏彴").ToList());
+        }
+
+        public WebResponseContent UpdateStation(SaveModel saveModel)
+        {
+            WebResponseContent content = new WebResponseContent();
+
+            try
+            {
+                string stationid = saveModel.MainData["stationid"].ToString();
+
+                string stationLoc = stationid == "1" ? "2033" : "2043";
+                Dt_StationManager dt_Station = BaseDal.QueryFirst(x => x.stationLocation == stationLoc);
+
+                if (dt_Station.stationStatus == "0")
+                {
+                    dt_Station.stationStatus = "1";
+                }
+                else
+                {
+                    dt_Station.stationStatus = "0";
+                }
+                BaseDal.UpdateData(dt_Station);
+                return content.OK();
+            }
+            catch (Exception ex)
+            {
+                return content.Error("閿欒淇℃伅锛�" + ex);
+                throw;
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3