Quellcode durchsuchen

【修改】全院学生成绩单接口:精简模型;

西昌缴费二期
dyy vor 2 Jahren
Ursprung
Commit
2f4f0dcaf1
1 geänderte Dateien mit 34 neuen und 3 gelöschten Zeilen
  1. +34
    -3
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuScoreApi.cs

+ 34
- 3
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuScoreApi.cs Datei anzeigen

@@ -24,7 +24,7 @@ namespace Learun.Application.WebApi.Modules
private ClassInfoIBLL classInfoIBLL = new ClassInfoBLL();
/// <summary>
/// 获取成绩列表
/// 全院学生成绩查看-打印成绩单
/// </summary>
/// <param name="_"></param>
/// <returns></returns>
@@ -57,7 +57,7 @@ namespace Learun.Application.WebApi.Modules
{
AcademicYearNo = x.Key.AcademicYearNo,
Semester = x.Key.Semester,
StuScoreEntityList = x.Select(y => new StuScoreEntity()
StuScoreEntityList = x.Select(y => new StuScoreModel()
{
AcademicYearNo = y.AcademicYearNo,
Semester = y.Semester,
@@ -105,7 +105,38 @@ namespace Learun.Application.WebApi.Modules
public class ScoreList {
public string AcademicYearNo { get; set; }
public string Semester { get; set; }
public List<StuScoreEntity> StuScoreEntityList { get; set; }
public List<StuScoreModel> StuScoreEntityList { get; set; }
}
public class StuScoreModel {
public string AcademicYearNo { get; set; }
public string Semester { get; set; }
/// <summary>
/// 课程类别码
/// </summary>
public string LessonSortNo { get; set; }
/// <summary>
/// 课程类别名称
/// </summary>
public string LessonSortName { get; set; }
public string LessonNo { get; set; }
public string LessonName { get; set; }
/// <summary>
/// 学分
/// </summary>
public decimal? StudyScore { get; set; }
/// <summary>
/// 成绩
/// </summary>
public decimal? Score { get; set; }
/// <summary>
/// 第一次补考成绩
/// </summary>
public string ScoreOfNotPass { get; set; }
/// <summary>
/// 第二次补考成绩
/// </summary>
public string ScoreOfNotPassTwo { get; set; }

}

}

Laden…
Abbrechen
Speichern