| | |
| | | 锘縰sing AutoMapper; |
| | | using Microsoft.IdentityModel.Tokens; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | |
| | | { |
| | | 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); |
| | | } |
| | | |