|
@@ -161,7 +161,7 @@ public class OutletScoreServiceImpl implements OutletScoreService{
|
|
private OutletScore findExamData(OutletScore outletScore,OeExamStudentBean examStudent) throws Exception{
|
|
private OutletScore findExamData(OutletScore outletScore,OeExamStudentBean examStudent) throws Exception{
|
|
QueryExamRecordForSelectScoreReq req = new QueryExamRecordForSelectScoreReq();
|
|
QueryExamRecordForSelectScoreReq req = new QueryExamRecordForSelectScoreReq();
|
|
req.setExamStudentId(examStudent.getExamStudentId());
|
|
req.setExamStudentId(examStudent.getExamStudentId());
|
|
- QueryExamRecordForSelectScoreResp resp = examRecordCloudService.queryExamRecordForSelectScore(req);
|
|
|
|
|
|
+ QueryExamRecordForSelectScoreResp resp = examRecordCloudService.queryExamRecordForSelectScoreByStudentId(req);
|
|
List<ExamRecordForSelectScore> examRecordList = resp.getExamRecordForSelectScoreList();
|
|
List<ExamRecordForSelectScore> examRecordList = resp.getExamRecordForSelectScoreList();
|
|
//List<ExamRecord> examRecordList = examRecordDao.findByExamStudentId(examStudent.getId());
|
|
//List<ExamRecord> examRecordList = examRecordDao.findByExamStudentId(examStudent.getId());
|
|
Boolean isFinished = examStudent.getFinished();
|
|
Boolean isFinished = examStudent.getFinished();
|
|
@@ -187,7 +187,7 @@ public class OutletScoreServiceImpl implements OutletScoreService{
|
|
* 2.设置考试结束时间
|
|
* 2.设置考试结束时间
|
|
*/
|
|
*/
|
|
public void setFinalExamScoreAndEndTime(Boolean isFinished,OutletScore outletScore,List<ExamRecordForSelectScore> examRecordList,String markingType){
|
|
public void setFinalExamScoreAndEndTime(Boolean isFinished,OutletScore outletScore,List<ExamRecordForSelectScore> examRecordList,String markingType){
|
|
- if(!isFinished){
|
|
|
|
|
|
+ if(!isFinished || examRecordList == null || examRecordList.size() == 0){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
ExamScoreBean examScore = finalExamScore(examRecordList,markingType);
|
|
ExamScoreBean examScore = finalExamScore(examRecordList,markingType);
|
|
@@ -199,7 +199,7 @@ public class OutletScoreServiceImpl implements OutletScoreService{
|
|
//设置考试结束时间和人脸识别成功率
|
|
//设置考试结束时间和人脸识别成功率
|
|
QueryExamRecordForSelectScoreReq req = new QueryExamRecordForSelectScoreReq();
|
|
QueryExamRecordForSelectScoreReq req = new QueryExamRecordForSelectScoreReq();
|
|
req.setExamScoreId(examScore.getId());
|
|
req.setExamScoreId(examScore.getId());
|
|
- QueryExamRecordForSelectScoreResp resp = examRecordCloudService.queryExamRecordForSelectScore(req);
|
|
|
|
|
|
+ QueryExamRecordForSelectScoreResp resp = examRecordCloudService.queryExamRecordForSelectScoreByScoreId(req);
|
|
List<ExamRecordForSelectScore> examRecordForSelectScoreList = resp.getExamRecordForSelectScoreList();
|
|
List<ExamRecordForSelectScore> examRecordForSelectScoreList = resp.getExamRecordForSelectScoreList();
|
|
|
|
|
|
ExamRecordForSelectScore examRecord = examRecordForSelectScoreList.get(0);
|
|
ExamRecordForSelectScore examRecord = examRecordForSelectScoreList.get(0);
|