Uat_Study
he 2022-04-22 09:26:10 +08:00
parent 6d27341365
commit c968308905
4 changed files with 7 additions and 1 deletions

View File

@ -245,6 +245,7 @@ namespace IRaCIS.Core.Application.Services
}) })
}); });
await _inspectionService.AddListInspectionRecordAsync(datas); await _inspectionService.AddListInspectionRecordAsync(datas);
await _inspectionService.SaveChangesAsync();
#endregion #endregion
} }

View File

@ -333,6 +333,8 @@ namespace IRaCIS.Core.Application.Service.Inspection
await _dataInspectionRepository.AddListInspectionRecordAsync(datas); await _dataInspectionRepository.AddListInspectionRecordAsync(datas);
await _dataInspectionRepository.SaveChangesAsync();
//foreach (var add in datas) //foreach (var add in datas)
//{ //{
// await SetInspectionNameValue(add); // await SetInspectionNameValue(add);

View File

@ -976,8 +976,9 @@ namespace IRaCIS.Core.Application.Image.QA
{ {
} }
await _repository.SaveChangesAsync();
await _trialRepository.AddListInspectionRecordAsync(datas); await _trialRepository.AddListInspectionRecordAsync(datas);
await _repository.SaveChangesAsync();
return ResponseOutput.Ok(); return ResponseOutput.Ok();
} }

View File

@ -131,6 +131,8 @@ namespace IRaCIS.Core.Infra.EFCore
}); });
} }
await AddListInspectionRecordAsync(datas); await AddListInspectionRecordAsync(datas);
await SaveChangesAsync(autoSave);
return entity; return entity;
} }