|
|
@@ -75,7 +75,12 @@ namespace Learun.Application.TwoDevelopment.EvaluationTeach |
|
|
|
strSql.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"] + "') aa "); |
|
|
|
strSql.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.Append("left join " + misdbname + ".dbo.EmpInfo cc on aa.EmpNo=cc.EmpNo left join " + misdbname + ".dbo.LessonInfo dd on aa.LessonNo = dd.LessonNo "); |
|
|
|
return this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(),pagination); |
|
|
|
if (pagination != null) |
|
|
|
{ |
|
|
|
return this.BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString(), pagination); |
|
|
|
} |
|
|
|
else |
|
|
|
return BaseRepository().FindList<Eval_QuestionResultEntity>(strSql.ToString()); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|