Forráskód Böngészése

Merge branch 'test' of http://110.188.24.182:10023/Fengwo/hotline into test

tangjiang 2 hete
szülő
commit
abd49996a1

+ 1 - 1
src/Hotline.Application/Exam/Service/ExamManages/UserExamService.cs

@@ -738,7 +738,7 @@ namespace Hotline.Application.Exam.Service.ExamManages
                 TotalScore = e.TotalScore,
                 ExamName = e.Name,
                 ExamCode = e.Code,
-                IsCheck = SqlFunc.Subqueryable<ExamUserExam>().Where(x => x.ExamId == e.Id && x.IsCheck).Any(),
+                IsCheck = SqlFunc.Subqueryable<ExamUserExam>().Where(x => x.ExamId == e.Id && !x.IsCheck).Count() <= 0,
                 Id = e.Id,
                 Remark = e.Remark
             });

+ 2 - 2
src/Hotline.Application/Exam/Service/Practices/PracticeService.cs

@@ -195,9 +195,9 @@ namespace Hotline.Application.Exam.Service.Practices
             var result = queryable.GroupBy(x => x.QuestionType).Select(m => new PracticeQuestionViewResponse
             {
                 QuestionType = m.Key,
-                Questions = m.Select(n => new SimpleViewResponse
+                Questions = m.GroupBy(g=>g.Id).Select(n => new SimpleViewResponse
                 {
-                    Id = n.Id
+                    Id = n.Key
                 }).ToList()
             }).ToList();