|
|
@@ -82,9 +82,17 @@ namespace Learun.Application.TwoDevelopment.EvaluationTeach |
|
|
|
strSql_Elective.Append("left join Eval_Main b on a.AcademicYearNo=b.AcademicYearNo and a.Semester=b.Semester where b.Status=1 and a.StuNo='" + queryParam["StuNo"] + "' and a.StuNo not in (select StuNo from " + misdbname + ".dbo.StuInfoBasic where ChangeStatus=1) ) aa "); |
|
|
|
strSql_Elective.Append("left join (select distinct b.EmpNo, b.LessonNo, b.UID from Eval_Question a left join Eval_QuestionResult b on a.QID=b.QID) bb on aa.EmpNo=bb.EmpNo and aa.LessonNo=bb.LessonNo and aa.StuNo=bb.UID "); |
|
|
|
strSql_Elective.Append("left join " + misdbname + ".dbo.EmpInfo cc on aa.EmpNo=cc.EmpNo left join " + misdbname + ".dbo.LessonInfo dd on aa.LessonNo = dd.LessonNo "); |
|
|
|
|
|
|
|
|
|
|
|
if (pagination != null) |
|
|
|
{ |
|
|
|
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); |
|
|
|
|
|
|
|
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)); |
|
|
|
} |
|
|
|
else |
|
|
|