Browse Source

课表查询 教师下拉框数据排除为null(选修课教师为空)

黑艺新账号
ndbs 10 months ago
parent
commit
354425ad82
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ArrangeLessonTerm/ArrangeLessonTermService.cs View File

@@ -1855,7 +1855,8 @@ group by AcademicYearNo,Semester,DeptNo,MajorNo,LessonNo,TeachClassNo,EmpNo,Les
var aa = new List<SelectModel>();
//必修课
//var teacherData = this.BaseRepository("CollegeMIS").FindList<ArrangeLessonTermEntity>(x => yearList.Contains(x.AcademicYearNo));
var teacherData = this.BaseRepository("CollegeMIS").FindList<ArrangeLessonTermEntity>("select EmpNo,EmpName,F_SchoolId from ArrangeLessonTerm where AcademicYearNo in(" + string.Join(",", yearList) + ") ");
var teacherData = this.BaseRepository("CollegeMIS").FindList<ArrangeLessonTermEntity>(@"select EmpNo,EmpName,F_SchoolId from ArrangeLessonTerm where " +
" empname is not null and len(empname) >0 and AcademicYearNo in(" + string.Join(",", yearList) + ") ");

if (!string.IsNullOrEmpty(schoolId))
{


Loading…
Cancel
Save