|
|
@ -251,6 +251,16 @@ public class InspectJobAppService |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost("change-image")] |
|
|
|
public virtual async Task<InspectJobDTO> ChangeImageAsync(Guid masterId,Guid summaryId, List<FileDTO> fileDto) |
|
|
|
{ |
|
|
|
var inspectJob=await _repository.FindAsync(masterId).ConfigureAwait(false); |
|
|
|
var summaryDetail=inspectJob.SummaryDetails.Find(p => p.Id == summaryId); |
|
|
|
var dict = await _fileAppService.CreateManyHasDictAsync(fileDto).ConfigureAwait(false); |
|
|
|
summaryDetail.InspectReport = JsonSerializer.Serialize(dict); |
|
|
|
inspectJob=await _repository.UpdateAsync(inspectJob).ConfigureAwait(false); |
|
|
|
return ObjectMapper.Map<InspectJob, InspectJobDTO>(inspectJob); |
|
|
|
} |
|
|
|
|
|
|
|
//[HttpPost("pick-inspect")]
|
|
|
|
//public virtual async Task AddPickInspectJobAsync(InspectJobCreateInput input)
|
|
|
|