From 6cc35000a6e138cfad96e7b02f8aeddcdb4ba6bf Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 24 六月 2025 09:57:25 +0800
Subject: [PATCH] 代码提交

---
 代码管理/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Dt_StationinfoController.cs |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Dt_StationinfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Dt_StationinfoController.cs"
index d5451b9..3e42315 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Dt_StationinfoController.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/NEWCode/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/Dt_StationinfoController.cs"
@@ -1,8 +1,13 @@
-锘縰sing Microsoft.AspNetCore.Http;
+锘縰sing Autofac.Core;
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
+using Newtonsoft.Json;
+using WIDESEAWCS_Core;
 using WIDESEAWCS_Core.BaseController;
 using WIDESEAWCS_ISystemServices;
 using WIDESEAWCS_Model.Models;
+using WIDESEAWCS_SystemServices;
 
 namespace WIDESEAWCS_Server.Controllers.System
 {
@@ -13,5 +18,32 @@
         public Dt_StationinfoController(IDt_StationinfoService service) : base(service)
         {
         }
+        [HttpPost, Route("SetStationEnable"), AllowAnonymous]
+        public WebResponseContent SetStationEnable([FromBody] object parm)
+        {
+            return Service.SetStationEnable(parm);
+        }
+
+        //public WebResponseContent SetStationEnable(object parm)
+        //{
+        //    WebResponseContent content = new WebResponseContent();
+        //    try
+        //    {
+        //        var data = JsonConvert.DeserializeObject<Parm>(parm.ToString());
+        //        var res = BaseDal.QueryFirst(x => data.data.Contains(x.id.ToString()));
+        //        res.Enable = data.type.ObjToBool();
+        //        var isTrue = BaseDal.UpdateData(res);
+        //        if (isTrue)
+        //        {
+        //            content.OK("缂撳瓨鏋剁姸鎬佹洿鏂版垚鍔�");
+        //        }
+        //    }
+        //    catch (Exception ex)
+        //    {
+        //        content.Error(ex.Message);
+        //    }
+        //    return content;
+        //}
+
     }
 }

--
Gitblit v1.9.3