From b8510ca5d1e56ef78cd27c45b6bd65a2c13f6b27 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 17 三月 2025 15:12:34 +0800
Subject: [PATCH] 代码优化

---
 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs |   31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs"
index e9479ee..445428d 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server \346\255\243\345\274\217/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs"
@@ -19,11 +19,6 @@
         {
 
         }
-        [HttpGet, Route("GetProcess"), AllowAnonymous]
-        public WebResponseContent GetProcess(string gruop)
-        {
-            return Service.GetProcess(gruop);
-        }
 
         [HttpGet, Route("GetSleeveandStep"), AllowAnonymous]
         public WebResponseContent GetSleeveandStep(string grops)
@@ -31,16 +26,10 @@
             return Service.GetSleeveandStep(grops);
         }
 
-        [HttpPost, Route("AddProcess"), AllowAnonymous]
-        public WebResponseContent AddProcess([FromBody] AddProcessDTO addProcessDTO)
+        [HttpPost, Route("AddOrUpdateProcess"), AllowAnonymous]
+        public WebResponseContent AddOrUpdateProcess([FromBody] AddProcessDTO addProcessDTO)
         {
-            return Service.AddProcess(addProcessDTO);
-        }
-
-        [HttpPut, Route("Upprocess"), AllowAnonymous]
-        public WebResponseContent Upprocess([FromBody] PutProcessDTO addProcessDTO)
-        {
-            return Service.Upprocess(addProcessDTO);
+            return Service.AddOrUpdateProcess(addProcessDTO);
         }
 
 
@@ -48,6 +37,20 @@
         public WebResponseContent Getcircuit(string group, string takeid)
         {
             return Service.Getcircuit(group,takeid);
+        
+        
+        }
+
+        [HttpPost, Route("Nextprocess"), AllowAnonymous]
+        public WebResponseContent Nextprocess([FromBody] SetpDTO setpDTO, bool flag)
+        {
+            return Service.Nextprocess(setpDTO, flag);
+        }
+
+        [HttpPost, Route("PreviousProcess"), AllowAnonymous]
+        public WebResponseContent PreviousProcess([FromBody] SetpDTO setpDTO)
+        {
+            return Service.PreviousProcess(setpDTO);
         }
 
     }

--
Gitblit v1.9.3