From a38b50675f2cf8e813bd337ca2f9d9456cc421d3 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 17 十月 2024 09:50:14 +0800 Subject: [PATCH] WCS --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_TaskController.cs | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_TaskController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_TaskController.cs" new file mode 100644 index 0000000..7fbe4e4 --- /dev/null +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Dt_TaskController.cs" @@ -0,0 +1,44 @@ +锘縩amespace WIDESEA_WMSServer.Controllers; + +/// <summary> +/// 浠诲姟鎿嶄綔鎺ュ彛 +/// </summary> +[Route("api/Dt_Task")] +[ApiController] +public class Dt_TaskController : ApiBaseController<IDt_TaskService, Dt_Task> +{ + private readonly IHttpContextAccessor _httpContextAccessor; + private readonly IDt_TaskService _taskService; + private readonly IDt_LocationService _locationService; + + public Dt_TaskController(IDt_TaskService taskService, + IHttpContextAccessor httpContextAccessor, + IDt_LocationService locationService) : base(taskService) + { + _httpContextAccessor = httpContextAccessor; + _taskService = taskService; + _locationService = locationService; + } + + /// <summary> + /// 鍑哄簱浠诲姟瀹屾垚 + /// </summary> + /// <param name="saveModel">鍑哄簱鏁版嵁</param> + /// <returns>鎴愬姛鎴栧け璐�</returns> + [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] + public async Task<WebResponseContent> CompleteTaskAsync(int taskNum) + { + return await _taskService.CompleteAsync(taskNum); + } + + /// <summary> + /// 妫�鏌ユ槸鍚﹂渶瑕佽繘琛岀Щ搴� + /// </summary> + /// <param name="taskNum">浠诲姟鍙�</param> + /// <returns>浠诲姟</returns> + [HttpGet, Route("TransferCheckAsync"), AllowAnonymous] + public async Task<WebResponseContent> TransferCheckAsync(int taskNum) + { + return new WebResponseContent().OK(data: await _locationService.TransferCheckAsync(taskNum)); + } +} \ No newline at end of file -- Gitblit v1.9.3