Commit 85e2002e authored by liudong1993's avatar liudong1993
parents 84d3646c 18b9dd03
...@@ -54,6 +54,7 @@ namespace EduSpider.Model.Extend ...@@ -54,6 +54,7 @@ namespace EduSpider.Model.Extend
/// </summary> /// </summary>
public string Title { get; set; } public string Title { get; set; }
/// <summary> /// <summary>
/// 评分机制(5-自定义,4-不评分,3-等第制,2-十分制,1-百分制) /// 评分机制(5-自定义,4-不评分,3-等第制,2-十分制,1-百分制)
/// </summary> /// </summary>
...@@ -126,5 +127,20 @@ namespace EduSpider.Model.Extend ...@@ -126,5 +127,20 @@ namespace EduSpider.Model.Extend
/// 考试领先度 /// 考试领先度
/// </summary> /// </summary>
public decimal ExamRankRate { get; set; } public decimal ExamRankRate { get; set; }
/// <summary>
/// 考试编号
/// </summary>
public int ExamId { get; set; }
/// <summary>
/// 考试详情编号
/// </summary>
public int ExamScoreId { get; set; }
/// <summary>
/// 教师姓名
/// </summary>
public string ThName { get; set; }
} }
} }
...@@ -78,6 +78,8 @@ WHERE 1=1 ...@@ -78,6 +78,8 @@ WHERE 1=1
ScoreType = item.score_type, ScoreType = item.score_type,
Score_Value = item.Score_value, Score_Value = item.Score_value,
HomeWorkStatus = item.status, HomeWorkStatus = item.status,
ThName=item.th_name,
}); });
RowNum++; RowNum++;
} }
...@@ -97,7 +99,7 @@ WHERE 1=1 ...@@ -97,7 +99,7 @@ WHERE 1=1
{ {
CreateTime = firstList.LastOrDefault().CreateTime.AddMinutes(1), CreateTime = firstList.LastOrDefault().CreateTime.AddMinutes(1),
ResultType = 3, ResultType = 3,
Title = "第一阶段评语", Title = firstList.LastOrDefault().ThName+ "老师的评语",
Comment = commentModel?.Info Comment = commentModel?.Info
}; };
...@@ -111,7 +113,7 @@ WHERE 1=1 ...@@ -111,7 +113,7 @@ WHERE 1=1
{ {
CreateTime = secondList.LastOrDefault().CreateTime.AddMinutes(1), CreateTime = secondList.LastOrDefault().CreateTime.AddMinutes(1),
ResultType = 3, ResultType = 3,
Title = "第二阶段评语", Title = secondList.LastOrDefault().ThName + "老师的评语",
Comment = commentModel?.Info Comment = commentModel?.Info
}; };
} }
...@@ -124,7 +126,7 @@ WHERE 1=1 ...@@ -124,7 +126,7 @@ WHERE 1=1
{ {
CreateTime = thirdList.LastOrDefault().CreateTime.AddMinutes(1), CreateTime = thirdList.LastOrDefault().CreateTime.AddMinutes(1),
ResultType = 3, ResultType = 3,
Title = "第三阶段评语", Title = thirdList.LastOrDefault().ThName + "老师的评语",
Comment = commentModel?.Info Comment = commentModel?.Info
}; };
} }
......
...@@ -111,6 +111,8 @@ namespace EduSpider.Services ...@@ -111,6 +111,8 @@ namespace EduSpider.Services
Score_p = score_p, Score_p = score_p,
ExamRank = item.Rank, ExamRank = item.Rank,
ExamRankRate = item.RankRate, ExamRankRate = item.RankRate,
ExamId= item.ExamId,
ExamScoreId=item.Id,
}); });
} }
} }
...@@ -118,6 +120,7 @@ namespace EduSpider.Services ...@@ -118,6 +120,7 @@ namespace EduSpider.Services
if (dataList != null && dataList.Count > 0) if (dataList != null && dataList.Count > 0)
{ {
dataList = dataList.OrderBy(qitem => qitem.CreateTime).ToList(); dataList = dataList.OrderBy(qitem => qitem.CreateTime).ToList();
var firstModel = dataList.FirstOrDefault();
foreach (var item in dataList) foreach (var item in dataList)
{ {
object obj = new(); object obj = new();
...@@ -127,7 +130,7 @@ namespace EduSpider.Services ...@@ -127,7 +130,7 @@ namespace EduSpider.Services
obj = new obj = new
{ {
item.Score, item.Score,
item.Score_p, Score_p = item.Score_p * 100,
item.ScoreType, item.ScoreType,
item.ScoreTypeStr, item.ScoreTypeStr,
item.Score_Value, item.Score_Value,
...@@ -141,9 +144,11 @@ namespace EduSpider.Services ...@@ -141,9 +144,11 @@ namespace EduSpider.Services
obj = new obj = new
{ {
item.Score, item.Score,
item.Score_p, Score_p = item.Score_p * 100,
item.ExamRank, item.ExamRank,
item.ExamRankRate, item.ExamRankRate,
item.ExamId,
item.ExamScoreId,
}; };
} }
//评语 //评语
...@@ -154,15 +159,22 @@ namespace EduSpider.Services ...@@ -154,15 +159,22 @@ namespace EduSpider.Services
item.Comment item.Comment
}; };
} }
string subTitle = "";
if (item.CreateTime.Year != firstModel.CreateTime.Year)
{
subTitle = firstModel.CreateTime.Year.ToString();
}
string createTime = Convert.ToDateTime(item.CreateTime.ToString()).ToString("MM-dd HH:mm");
list.Add(new list.Add(new
{ {
item.ResultType, item.ResultType,
item.ResultTypeStr, item.ResultTypeStr,
item.Title, item.Title,
CreateTime = VTX.FW.Helper.ConvertHelper.FormatTime(item.CreateTime, 2), TimeTile=subTitle,
CreateTime = createTime,
DataObj = obj DataObj = obj
}); });
firstModel = item;
} }
} }
return list; return list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment