|
|
@ -386,6 +386,12 @@ public class TransferLibRequestAppService : SfsStoreRequestAppServiceBase |
|
|
|
return ObjectMapper.Map<TransferLibRequest, TransferLibRequestDTO>(request); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost("Complete-By-Job")] |
|
|
|
public async Task CompleteByJobAsync(string requestNumber) |
|
|
|
{ |
|
|
@ -414,6 +420,14 @@ public class TransferLibRequestAppService : SfsStoreRequestAppServiceBase |
|
|
|
foreach (var request in list) |
|
|
|
{ |
|
|
|
await CompleteAsync(request.Id).ConfigureAwait(false); |
|
|
|
var jobs = await _transferLibJobAppService.GetByRequestNumberAsync(request.Number).ConfigureAwait(false); |
|
|
|
foreach (var itm in jobs) |
|
|
|
{ |
|
|
|
if (itm.JobStatus != EnumJobStatus.Done) |
|
|
|
{ |
|
|
|
await _transferLibJobAppService.CompleteAsync(itm.Id, itm).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|