From 62751e74a70b6f1ca848e0f5fdb6fb8922d99f38 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期四, 20 三月 2025 12:01:26 +0800 Subject: [PATCH] 冒泡排序 --- 项目代码/WIDESEAWCS_Server 正式/WIDESEAWCS_Server/Controllers/SerialPort/ProcessController.cs | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 52 insertions(+), 3 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 45abc87..ec18006 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" @@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; +using WIDESEAWCS_DTO.SerialPort; using WIDESEAWCS_DTO.TaskInfo; using WIDESEAWCS_ITaskInfoService; using WIDESEAWCS_Model.Models; @@ -18,12 +19,60 @@ { } - [HttpGet, Route("GetProcess"), AllowAnonymous] - public WebResponseContent GetProcess(string gruop) + + [HttpGet, Route("GetSleeveandStep"), AllowAnonymous] + public WebResponseContent GetSleeveandStep(string grops) { - return Service.GetProcess(gruop); + return Service.GetSleeveandStep(grops); } + /// <summary> + /// 鏍规嵁id鏉ュ垽鏂槸娣诲姞杩樻槸鏇存柊 + /// </summary> + /// <param name="addProcessDTO"></param> + /// <returns></returns> + [HttpPost, Route("AddOrUpdateProcess"), AllowAnonymous] + public WebResponseContent AddOrUpdateProcess([FromBody] AddProcessDTO addProcessDTO) + { + return Service.AddOrUpdateProcess(addProcessDTO); + } + + /// <summary> + /// 鑾峰彇褰撳墠浠诲姟宸ヤ綔姝ラ + /// </summary> + /// <param name="group"></param> + /// <param name="takeid"></param> + /// <returns></returns> + [HttpGet, Route("Getcircuit"), AllowAnonymous] + public WebResponseContent Getcircuit(string group, string takeid) + { + return Service.Getcircuit(group,takeid); + + + } + + /// <summary> + /// 涓嬩竴姝� + /// </summary> + /// <param name="setpDTO"></param> + /// <param name="flag"></param> + /// <returns></returns> + [HttpPost, Route("Nextprocess"), AllowAnonymous] + public WebResponseContent Nextprocess([FromBody] SetpDTO setpDTO, bool flag) + { + return Service.Nextprocess(setpDTO, flag); + } + + /// <summary> + /// 涓婁竴姝� + /// </summary> + /// <param name="setpDTO"></param> + /// <returns></returns> + [HttpPost, Route("PreviousProcess"), AllowAnonymous] + public WebResponseContent PreviousProcess([FromBody] SetpDTO setpDTO) + { + return Service.PreviousProcess(setpDTO); + } } } -- Gitblit v1.9.3