|
|
@ -84,10 +84,10 @@ public class ThirdLocationJobAppService |
|
|
|
/// 执行任务明细
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("ExecuteDetail/{masterId}")] |
|
|
|
public async Task ExecuteDetailAsync(Guid masterId,List<ThirdLocationJobDetailDTO> detailDtoList) |
|
|
|
[HttpPost("execute-detail")] |
|
|
|
public virtual async Task<ThirdLocationJobDTO> ExecuteDetailAsync(List<ThirdLocationJobDetailDTO> detailDtoList) |
|
|
|
{ |
|
|
|
var thirdLocationJob=await _repository.GetAsync(masterId).ConfigureAwait(false); |
|
|
|
var thirdLocationJob=await _repository.GetAsync(detailDtoList.First().MasterID).ConfigureAwait(false); |
|
|
|
thirdLocationJob.JobStatus = EnumJobStatus.Partial; |
|
|
|
|
|
|
|
var tempDetailDto= new List<ThirdLocationJobDetailDTO>(); |
|
|
@ -105,7 +105,7 @@ public class ThirdLocationJobAppService |
|
|
|
var transferLogs = await BuildTransferLogsByFromTransportAsync(thirdLocationJob, tempDetailDto).ConfigureAwait(false); |
|
|
|
await _transferLogAppService.AddManyAsync(transferLogs).ConfigureAwait(false); |
|
|
|
|
|
|
|
var jobDto=await GetAsync(masterId).ConfigureAwait(false); |
|
|
|
var jobDto=await GetAsync(detailDtoList.First().MasterID).ConfigureAwait(false); |
|
|
|
var tempDetailDtos = new List<ThirdLocationJobDetailDTO>(); |
|
|
|
foreach (var detailDto in detailDtoList) |
|
|
|
{ |
|
|
@ -122,7 +122,9 @@ public class ThirdLocationJobAppService |
|
|
|
|
|
|
|
await UpdateJobStatusAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
|
|
|
|
|
await _repository.UpdateAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
|
var result=await _repository.UpdateAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
|
|
|
|
|
return ObjectMapper.Map<ThirdLocationJob, ThirdLocationJobDTO>(result); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|