From d97c1362ff47b6a9d0e9d56f6f22aa2771c368c0 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Mon, 4 Mar 2024 11:04:21 +0800 Subject: [PATCH] =?UTF-8?q?pda=E6=8E=A5=E5=8F=A3=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E5=90=8E=E9=80=80=E8=B4=A7=E7=94=B3=E8=AF=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FawtygAutoMapperProfile.cs | 2 +- .../Controllers/Stores/PurchaseReturnRequestController.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs index a4d163e2a..c925bd78e 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs @@ -86,7 +86,7 @@ public class FawtygAutoMapperProfile : Profile CreateMap() .ForMember(x => x.Code, y => y.MapFrom(d => d.PackingCode)) - .ForMember(x => x.LabelType, y => y.MapFrom(d => EnumLabelType.PurchaseLabel)) + .ForMember(x => x.LabelType, y => y.MapFrom(d => Label.Domain.Shared.EnumLabelType.PurchaseLabel)) .ForMember(x => x.LabelStatus, y => y.MapFrom(d => LabelStatus.Enable)) .Ignore(x => x.FullBarcodeString) .Ignore(x => x.RecommendLocationCode) diff --git a/be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs b/be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs index 0df247f7f..e0ccaa4bf 100644 --- a/be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs +++ b/be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs @@ -33,7 +33,7 @@ public class PurchaseReturnRequestController : AbpController /// 创建退货申请 /// [HttpPost("create-many")] - public virtual async Task CreateManyAsync(List input) + public virtual async Task CreateManyAsync(List input) { List entitys = new List(); var groups = input.GroupBy(r => r.AsnNumber).ToList(); @@ -50,8 +50,9 @@ public class PurchaseReturnRequestController : AbpController } entitys.Add(entity); } - await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false); ; - } + await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false); + return Ok(); + } /// /// 赋值Request业务属性