Selaa lähdekoodia

娄底高职分支
dao 5 kuukautta sitten
vanhempi
commit
39faa9a73a
1 muutettua tiedostoa jossa 8 lisäystä ja 6 poistoa
  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 Näytä tiedosto

@@ -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()));


Ladataan…
Peruuta
Tallenna