瀏覽代碼

娄底高职分支
dao 5 月之前
父節點
當前提交
39faa9a73a
共有 1 個檔案被更改,包括 8 行新增6 行删除
  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 查看文件

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


Loading…
取消
儲存