功能说明:根据学员账号,获取历史考试成绩
请求方式:POST(HTTPS)
请求地址:https://qwif.do1.com.cn/qwcgi/api/exam/searchExamResult.do?token=token&corpId=corpId
|
参数 |
是否必填 |
说明 |
|---|---|---|
|
userId |
是 |
学员账号 |
|
startDate |
否 |
考试开始日期 (格式:yyyy-MM-dd) |
|
endDate |
否 |
考试结束日期 (格式:yyyy-MM-dd) |
|
examId |
否 |
考试 ID (考试统计页面URL的id) |
String userId = "xueba"; // 学员账号 String examId = ""; // 可以通过云平台查看考试的url获得 String startDate = "2018-05-21"; // 考试开始日期 (格式:yyyy-MM-dd) String endDate = "2018-09-22"; // 考试结束日期 (格式:yyyy-MM-dd) ExamApi examApi = QwSdkUtil.getInter(ExamApi.class); SearchExamResult result = examApi.searchExamResult( QwSdkUtil.getCacheToken(), userId, examId, startDate, endDate); System.out.println(JSONUtil.stringify(result));
{
"code": "0",
"desc": "操作成功",
"data": {
"exams": [{
"examAverageScore": 1,
"examDuration": 3,
"examHighestScore": 5,
"examId": "2327e3a1f2c644f38201c0b29a963f66",
"examName": "道一云研究院入学考试",
"examPassRate": "0.0",
"examPassScore": 13,
"examTotalNumber": 173,
"examTotalScore": 50,
"makeupScoreList": [{
"handTime": "2017-11-01 11-03-44",
"isPass": 1,
"score": 100,
"usedTime": 0
}],
"ranking": "2",
"scoreList": [{
"handTime": "2017-11-01 11-03-44",
"isPass": 1,
"score": 100,
"usedTime": 0
}]
}]
}
}
|
参数 |
说明 |
|---|---|
|
examId |
考试 ID |
|
examName |
考试名称 |
|
examduration |
考试时长(单位:分钟) |
|
examTotalScore |
考试总分 |
|
examPassScore |
考试及格分 |
|
examTotalNumber |
参考总人数 |
|
examPassRate |
及格率 |
|
examHighestScore |
考试最高分 |
|
examAverageScore |
平均分 |
|
ranking |
排名名次 |
|
scoreList |
考试成绩 |
|
score |
得分 |
|
isPass |
是否通过(0:不通过,1:通过) |
|
handTime |
交卷时间 |
|
usedTime |
用时(单位:分) |
|
makeupScoreList |
补考成绩 |