From f94288b728f81b20c29e626526c584c11a7894a3 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期六, 05 四月 2025 14:02:06 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/OrderDetailsController.cs | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/OrderDetailsController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/OrderDetailsController.cs" similarity index 71% rename from "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/OrderDetailsController.cs" rename to "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/OrderDetailsController.cs" index a09a71f..33438fc 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/System/OrderDetailsController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/OrderDetailsController.cs" @@ -3,13 +3,14 @@ using Microsoft.AspNetCore.Mvc; using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; +using WIDESEAWCS_DTO.BasicInfo; using WIDESEAWCS_DTO.TaskInfo; +using WIDESEAWCS_IBasicInfoService; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_ITaskInfoService; using WIDESEAWCS_Model.Models; -using WIDESEAWCS_Model.Models.System; -namespace WIDESEAWCS_WCSServer.Controllers.System +namespace WIDESEAWCS_Server.Controllers.BasicInfo { [Route("api/OrderDetails")] [ApiController] @@ -21,10 +22,11 @@ _httpContextAccessor = httpContextAccessor; } - [HttpPost,Route("ToMesBarc"), AllowAnonymous] + [HttpPost, Route("ToMesBarc"), AllowAnonymous] public ToMesBarcRes ToMesBarc(int Barcodes) { - return Service.ToMesBarc(Barcodes); + ToMesBarcRes? toMes = Service.ToMesBarc(Barcodes); + return toMes != null ? toMes : new ToMesBarcRes() { code = -1, type = false }; } } } -- Gitblit v1.9.3