Quellcode durchsuchen

娄底高职分支
dao vor 5 Monaten
Ursprung
Commit
39faa9a73a
1 geänderte Dateien mit 8 neuen und 6 gelöschten Zeilen
  1. +8
    -6
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs

+ 8
- 6
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EvaluationTeach/Eval_Main/Eval_MainService.cs Datei anzeigen

@@ -85,15 +85,17 @@ namespace Learun.Application.TwoDevelopment.EvaluationTeach
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
return BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString()).Union(BaseRepository().FindList<Eval_QuestionResultEntity>(strSql_Elective.ToString()));


Laden…
Abbrechen
Speichern