Commit 7448104f authored by liudong1993's avatar liudong1993

1

parent 703a941d
......@@ -21,7 +21,7 @@ namespace EduSpider.IServices
object GetExamStuScoreInfo_Group(int examId, int stuId, int stuUId);
List<RB_Exam_Score_Extend> GetExamStuList(RB_Exam_Score_Extend demodel);
string DelExamInfo(int examId, int baseUserId);
string SetExamStatAnalysis(int courseId, UserInfo userInfo);
string SetExamStatAnalysis(int courseId, int analysisType, UserInfo userInfo);
object GetExamStatAnalysisInfo(int examId, int stuId, int stuUId, out string msg);
}
}
......@@ -58,5 +58,10 @@ namespace EduSpider.Model.Entity
/// 类型 1正常考试 2分组试题 3统计分析
/// </summary>
public int Type { get; set; }
/// <summary>
/// 是否生成统计表的1-8题统计分析 1是 其他否
/// </summary>
public int AnalysisType { get; set; }
}
}
......@@ -508,7 +508,7 @@ namespace EduSpider.Services
/// <param name="courseId"></param>
/// <param name="userInfo"></param>
/// <returns></returns>
public string SetExamStatAnalysis(int courseId, UserInfo userInfo)
public string SetExamStatAnalysis(int courseId,int analysisType, UserInfo userInfo)
{
//获取所有分组考试
var examList = ExamRepository.GetExamList(new RB_Exam_Extend() { CourseId = courseId, Type = 2 }).OrderBy(x => x.ExamId).ToList();
......@@ -546,7 +546,8 @@ namespace EduSpider.Services
ExamName = "统计分析",
Status = 0,
UpdateBy = userInfo.Id,
UpdateTime = DateTime.Now
UpdateTime = DateTime.Now,
AnalysisType = analysisType
});
if (ExamId > 0) {
......@@ -806,6 +807,7 @@ namespace EduSpider.Services
StuId = stuModel.StudId,
StuName = stuModel.StudentName,
examModel.ExamName,
examModel.AnalysisType,
sExamModel?.TScore,
sExamModel?.Rank,
sExamModel?.RankRate,
......
......@@ -169,7 +169,10 @@ namespace EduSpider.WebApi.Controllers
return ApiResult.ParamIsNull("非老师账户,无法操作");
}
string rmsg = ExamService.SetExamStatAnalysis(CourseId, base.UserInfo);
int AnalysisType = ReqParameters.GetInt("AnalysisType", 1);//是否生成统计表的1-8题统计分析? 1是 2否
AnalysisType = AnalysisType <= 0 ? 1 : AnalysisType;
string rmsg = ExamService.SetExamStatAnalysis(CourseId, AnalysisType, base.UserInfo);
if (rmsg == "")
{
return ApiResult.Success();
......
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