Przeglądaj źródła

塔里木人员显示排序

新疆影视学院高职
liangkun 3 lat temu
rodzic
commit
1852b94caf
2 zmienionych plików z 5 dodań i 5 usunięć
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs Wyświetl plik

@@ -115,7 +115,7 @@ namespace Learun.Application.Organization
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(fieldSql.Replace("t.F_Password,", "").Replace("t.F_Secretkey,", ""));
strSql.Append(" FROM LR_Base_User t WHERE t.F_DeleteMark = 0 AND t.F_CompanyId = @companyId ORDER BY t.F_DepartmentId,t.F_RealName ");
strSql.Append(" FROM LR_Base_User t WHERE t.F_DeleteMark = 0 AND t.F_CompanyId = @companyId ORDER BY t.F_Order ");
return this.BaseRepository().FindList<UserEntity>(strSql.ToString(), new { companyId = companyId });
}
catch (Exception ex)


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs Wyświetl plik

@@ -1083,11 +1083,11 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad
try
{
var strSql = new StringBuilder();
//strSql.Append("select distinct s.LessonNo as value,s.LessonName as text from stuscore s where s.LessonSortNo='1' ");
strSql.Append("select distinct s.LessonNo as value,s.LessonName as text from stuscore s where s.LessonSortNo='1' ");
//只显示“公开课”类型的课程
strSql.Append("select distinct s.LessonNo as value,l.LessonName as text from stuscore s ");
strSql.Append(" left join LessonInfo l on s.LessonNo=l.LessonNo left join CdLessonType t on l.LessonTypeId=t.LTId ");
strSql.Append(" where s.LessonSortNo='1' and t.LessonTypeCode='OpenLesson' ");
//strSql.Append("select distinct s.LessonNo as value,l.LessonName as text from stuscore s ");
//strSql.Append(" left join LessonInfo l on s.LessonNo=l.LessonNo left join CdLessonType t on l.LessonTypeId=t.LTId ");
//strSql.Append(" where s.LessonSortNo='1' and t.LessonTypeCode='OpenLesson' ");
if (userType == "教师")
{
strSql.Append(" and s.EmpNo='" + userAccount + "' ");


Ładowanie…
Anuluj
Zapisz