|
@@ -1,7 +1,5 @@
|
|
package com.qmth.distributed.print.business.service.impl;
|
|
package com.qmth.distributed.print.business.service.impl;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -17,7 +15,6 @@ import com.qmth.teachcloud.mark.bean.student.MarkStudentQuery;
|
|
import com.qmth.teachcloud.mark.dto.mark.MarkStudentVo;
|
|
import com.qmth.teachcloud.mark.dto.mark.MarkStudentVo;
|
|
import com.qmth.teachcloud.mark.dto.mark.ScoreItem;
|
|
import com.qmth.teachcloud.mark.dto.mark.ScoreItem;
|
|
import com.qmth.teachcloud.mark.entity.MarkPaper;
|
|
import com.qmth.teachcloud.mark.entity.MarkPaper;
|
|
-import com.qmth.teachcloud.mark.entity.MarkStudent;
|
|
|
|
import com.qmth.teachcloud.mark.service.MarkPaperService;
|
|
import com.qmth.teachcloud.mark.service.MarkPaperService;
|
|
import com.qmth.teachcloud.mark.service.MarkQuestionService;
|
|
import com.qmth.teachcloud.mark.service.MarkQuestionService;
|
|
import com.qmth.teachcloud.mark.service.MarkStudentService;
|
|
import com.qmth.teachcloud.mark.service.MarkStudentService;
|
|
@@ -228,12 +225,12 @@ public class OpenApiServiceImpl implements OpenApiService {
|
|
examStudentScore.setPaperType(paperType);
|
|
examStudentScore.setPaperType(paperType);
|
|
examStudentScore.setCollege(e.getCollegeName());
|
|
examStudentScore.setCollege(e.getCollegeName());
|
|
examStudentScore.setMajor(SystemConstant.strNotNull(e.getMajorName()) ? e.getMajorName() : "未知专业");
|
|
examStudentScore.setMajor(SystemConstant.strNotNull(e.getMajorName()) ? e.getMajorName() : "未知专业");
|
|
- examStudentScore.setClassName(SystemConstant.strNotNull(e.getClassName()) ? e.getClassName() : "未知班级");
|
|
|
|
|
|
+ examStudentScore.setClassName(SystemConstant.strNotNull(e.getTeachClassName()) ? e.getTeachClassName() : "未知班级");
|
|
|
|
|
|
List<GradeBatchStudentClazz> gradeBatchStudentClasses = gradeBatchStudentClazzList.isEmpty() ?
|
|
List<GradeBatchStudentClazz> gradeBatchStudentClasses = gradeBatchStudentClazzList.isEmpty() ?
|
|
null :
|
|
null :
|
|
gradeBatchStudentClazzList.stream()
|
|
gradeBatchStudentClazzList.stream()
|
|
- .filter(s -> s.getClazzName().equals(e.getClassName()) && s.getPaperNumber().equals(examStudentScore.getPaperNumber()) && s.getPaperType()
|
|
|
|
|
|
+ .filter(s -> s.getClazzName().equals(e.getTeachClassName()) && s.getPaperNumber().equals(examStudentScore.getPaperNumber()) && s.getPaperType()
|
|
.equals(examStudentScore.getPaperType())).collect(Collectors.toList());
|
|
.equals(examStudentScore.getPaperType())).collect(Collectors.toList());
|
|
|
|
|
|
GradeBatchStudentClazz gradeBatchStudentClazz = gradeBatchStudentClasses == null || gradeBatchStudentClasses.isEmpty() ?
|
|
GradeBatchStudentClazz gradeBatchStudentClazz = gradeBatchStudentClasses == null || gradeBatchStudentClasses.isEmpty() ?
|
|
@@ -241,7 +238,7 @@ public class OpenApiServiceImpl implements OpenApiService {
|
|
gradeBatchStudentClasses.get(0);
|
|
gradeBatchStudentClasses.get(0);
|
|
if (gradeBatchStudentClazz == null) {
|
|
if (gradeBatchStudentClazz == null) {
|
|
throw ExceptionResultEnum.ERROR.exception(
|
|
throw ExceptionResultEnum.ERROR.exception(
|
|
- String.format("科目[%s],试卷编号[%s],班级[%s]未导入任课老师", e.getCourseName(), e.getPaperNumber(), e.getClassName()));
|
|
|
|
|
|
+ String.format("科目[%s],试卷编号[%s],班级[%s]未导入任课老师", e.getCourseName(), e.getPaperNumber(), e.getTeachClassName()));
|
|
}
|
|
}
|
|
|
|
|
|
examStudentScore.setTeacherName(gradeBatchStudentClazz.getTeacherName());
|
|
examStudentScore.setTeacherName(gradeBatchStudentClazz.getTeacherName());
|