Browse Source

pda接口上架后退货申请修改

dev_DY_CC
lvzb 1 year ago
parent
commit
d97c1362ff
  1. 2
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs
  2. 7
      be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs

2
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/FawtygAutoMapperProfile.cs

@ -86,7 +86,7 @@ public class FawtygAutoMapperProfile : Profile
CreateMap<SupplierAsnDetailExchangeDto, InventoryLabelEditInput>() CreateMap<SupplierAsnDetailExchangeDto, InventoryLabelEditInput>()
.ForMember(x => x.Code, y => y.MapFrom(d => d.PackingCode)) .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)) .ForMember(x => x.LabelStatus, y => y.MapFrom(d => LabelStatus.Enable))
.Ignore(x => x.FullBarcodeString) .Ignore(x => x.FullBarcodeString)
.Ignore(x => x.RecommendLocationCode) .Ignore(x => x.RecommendLocationCode)

7
be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Stores/PurchaseReturnRequestController.cs

@ -33,7 +33,7 @@ public class PurchaseReturnRequestController : AbpController
/// 创建退货申请 /// 创建退货申请
/// </summary> /// </summary>
[HttpPost("create-many")] [HttpPost("create-many")]
public virtual async Task CreateManyAsync(List<PurchaseReturnRequestPdaInput> input) public virtual async Task<ActionResult> CreateManyAsync(List<PurchaseReturnRequestPdaInput> input)
{ {
List<PurchaseReturnRequestEditInput> entitys = new List<PurchaseReturnRequestEditInput>(); List<PurchaseReturnRequestEditInput> entitys = new List<PurchaseReturnRequestEditInput>();
var groups = input.GroupBy(r => r.AsnNumber).ToList(); var groups = input.GroupBy(r => r.AsnNumber).ToList();
@ -50,8 +50,9 @@ public class PurchaseReturnRequestController : AbpController
} }
entitys.Add(entity); entitys.Add(entity);
} }
await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false); ; await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false);
} return Ok();
}
/// <summary> /// <summary>
/// 赋值Request业务属性 /// 赋值Request业务属性

Loading…
Cancel
Save