|
|
@ -249,7 +249,7 @@ public class ThirdLocationRequestAppService : SfsStoreRequestAppServiceBase<Thir |
|
|
|
{ |
|
|
|
foreach (var thirdLocationJobDto in list) |
|
|
|
{ |
|
|
|
if (thirdLocationJobDto.JobStatus == EnumJobStatus.Open) |
|
|
|
if (thirdLocationJobDto.JobStatus == EnumJobStatus.Open || thirdLocationJobDto.JobStatus == EnumJobStatus.Doing) |
|
|
|
{ |
|
|
|
await _thirdLocationJobAppService.CancelAsync(thirdLocationJobDto.Id).ConfigureAwait(false); |
|
|
|
} |
|
|
@ -311,7 +311,7 @@ public class ThirdLocationRequestAppService : SfsStoreRequestAppServiceBase<Thir |
|
|
|
await LocalEventBus.PublishAsync(new SfsClosedEntityEventData<ThirdLocationJob>(thirdLocationJob), false).ConfigureAwait(false); |
|
|
|
await _thirdLocationJobRepository.UpdateAsync(thirdLocationJob).ConfigureAwait(false); |
|
|
|
} |
|
|
|
else if (thirdLocationJob.JobStatus == EnumJobStatus.Open) |
|
|
|
else if (thirdLocationJob.JobStatus == EnumJobStatus.Open || thirdLocationJob.JobStatus == EnumJobStatus.Doing) |
|
|
|
{ |
|
|
|
thirdLocationJob.JobStatus = EnumJobStatus.Closed; |
|
|
|
await Task.CompletedTask.ConfigureAwait(false); |
|
|
|