From 0d2f7d905975c1f5d39f70689760b070cef31349 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期三, 20 十一月 2024 22:06:23 +0800 Subject: [PATCH] 优化前端界面 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs" index 64c2a2b..7bc0dac 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_InboundService/Base/InboundOrderService.cs" @@ -1,4 +1,5 @@ 锘縰sing AutoMapper; +using Microsoft.IdentityModel.Tokens; using SqlSugar; using System; using System.Collections.Generic; @@ -54,6 +55,14 @@ { InboundOrderAddDTO orderAddDTO = saveModel.MainData.DicToModel<InboundOrderAddDTO>(); orderAddDTO.Details = saveModel.DetailData.DicToIEnumerable<InboundOrderDetailAddDTO>(); + List<string> LocationCodes = orderAddDTO.Details + .Where(x => !string.IsNullOrEmpty(x.LocationCode)) + .Select(x => x.LocationCode).ToList(); + if (LocationCodes.Any()) + { + var content = _basicService.LocationInfoService.UpdateStatus(LocationCodes, LocationStatusEnum.PalletLock.ObjToInt()); + if (!content.Status) return WebResponseContent.Instance.Error("鎸囧畾璐т綅寮傚父"); + } return AddInboundOrder(orderAddDTO); } -- Gitblit v1.9.3