|
|
@ -33,7 +33,7 @@ public class PurchaseReturnRequestController : AbpController |
|
|
|
/// 创建退货申请
|
|
|
|
/// </summary>
|
|
|
|
[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>(); |
|
|
|
var groups = input.GroupBy(r => r.AsnNumber).ToList(); |
|
|
@ -50,7 +50,8 @@ public class PurchaseReturnRequestController : AbpController |
|
|
|
} |
|
|
|
entitys.Add(entity); |
|
|
|
} |
|
|
|
await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false); ; |
|
|
|
await _purchaseReturnRequestAppService.CreateManyAsync(entitys).ConfigureAwait(false); |
|
|
|
return Ok(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|