|
|
|
@ -640,7 +640,7 @@ public class Ghre_ExamRecordServices : BaseServices<Ghre_ExamRecord, Ghre_ExamRe |
|
|
|
|
if (config.QuestionId != null) |
|
|
|
|
sql += $" AND Id='{config.QuestionId}'"; |
|
|
|
|
if (examPaperQuestionIds.Any()) |
|
|
|
|
sql += $" AND Id NOT IN ('{string.Join(",", examPaperQuestionIds)}')"; |
|
|
|
|
sql += $" AND Id NOT IN ({string.Join(",", examPaperQuestionIds)})"; |
|
|
|
|
|
|
|
|
|
sql += $" ORDER BY GuidValue ASC"; |
|
|
|
|
var questions2 = await Db.Ado.SqlQueryAsync<Ghre_Question>(sql); |
|
|
|
|