|
@@ -85,15 +85,17 @@ namespace Learun.Application.TwoDevelopment.EvaluationTeach |
|
|
|
|
|
|
|
|
if (pagination != null) |
|
|
if (pagination != null) |
|
|
{ |
|
|
{ |
|
|
var l1 = this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(), pagination); |
|
|
|
|
|
var rec = pagination.records; |
|
|
|
|
|
|
|
|
//var l1 = this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(), pagination); |
|
|
|
|
|
//var rec = pagination.records; |
|
|
|
|
|
|
|
|
var l2 = this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString(), pagination); |
|
|
|
|
|
|
|
|
//var l2 = this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString(), pagination); |
|
|
|
|
|
|
|
|
if (rec > pagination.records) |
|
|
|
|
|
pagination.records = rec; |
|
|
|
|
|
|
|
|
//if (rec > pagination.records) |
|
|
|
|
|
// pagination.records = rec; |
|
|
|
|
|
|
|
|
return this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(), pagination).Union(this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString(), pagination)); |
|
|
|
|
|
|
|
|
var sql = $"{strSql.ToString()} union {strSql_Elective.ToString()}"; |
|
|
|
|
|
//return this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(), pagination).Union(this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString(), pagination)); |
|
|
|
|
|
return this.BaseRepository().FindList<Eval_QuestionResultEntity>(sql, pagination); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
return BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString()).Union(BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString())); |
|
|
return BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString()).Union(BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString())); |
|
|