|
@ -299,6 +299,26 @@ public class TransferLibJobAppService |
|
|
return ObjectMapper.Map<List<TransferLibJob>, List<TransferLibJobDTO>>(list); |
|
|
return ObjectMapper.Map<List<TransferLibJob>, List<TransferLibJobDTO>>(list); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost("get-by-job/Id")] |
|
|
|
|
|
[UnitOfWork] |
|
|
|
|
|
public async Task<bool> IsCompleted(string jobNumber) |
|
|
|
|
|
{ |
|
|
|
|
|
var list = await _repository.GetListAsync(p => p.JobNumber == jobNumber).ConfigureAwait(false); |
|
|
|
|
|
if (list.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override async Task CancelAcceptAsync(Guid id) |
|
|
public override async Task CancelAcceptAsync(Guid id) |
|
|
{ |
|
|
{ |
|
|
var job = await _repository.FindAsync(p => p.Id == id).ConfigureAwait(false); |
|
|
var job = await _repository.FindAsync(p => p.Id == id).ConfigureAwait(false); |
|
|