|
@@ -38,6 +38,7 @@ using XF.Domain.Authentications;
|
|
|
using XF.Domain.Dependency;
|
|
|
using Hotline.Repository.SqlSugar.Exam.Service;
|
|
|
using Hotline.Repository.SqlSugar.Exam.Extensions;
|
|
|
+using Exam.Infrastructure.Extensions;
|
|
|
|
|
|
namespace Hotline.Application.Exam.Service.Practices
|
|
|
{
|
|
@@ -321,6 +322,8 @@ namespace Hotline.Application.Exam.Service.Practices
|
|
|
}
|
|
|
private async Task<PracticeQuestionDto> QueryPracticeQuestion(PracticeQuestionRequest practiceQuestionRequest)
|
|
|
{
|
|
|
+ if (practiceQuestionRequest.PracticeQuestionId.IsNullOrEmpty()) return null;
|
|
|
+
|
|
|
var practiceQuestion = await _practiceQuestionRepository.GetAsync(x => x.Id == practiceQuestionRequest.PracticeQuestionId);
|
|
|
|
|
|
var practiceQuestionDto = _mapper.Map<PracticeQuestionDto>(practiceQuestion);
|