|
|
|
@ -321,44 +321,6 @@ public class TeaGradeManageController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// private List<TeaExamAndUserDto> getTeaExamAndUserDtos(String schoolId, String keyWord, String classId, String examManageId) {
|
|
|
|
|
// List<TeaExamAndUserDto> list = new ArrayList<>();
|
|
|
|
|
// List<StuUser> stuUsers = userMapper.selectTeaExamAndUserDtos(schoolId, keyWord, classId, examManageId);
|
|
|
|
|
// //先拿到用户信息,再用userid查学生分数
|
|
|
|
|
// for (StuUser stuUser : stuUsers) {
|
|
|
|
|
// TeaExamAndUserDto teaExamAndUserDto = new TeaExamAndUserDto();
|
|
|
|
|
// String userid = stuUser.getUserid();
|
|
|
|
|
// StuStudentExamExample studentExamExample = new StuStudentExamExample();
|
|
|
|
|
// StuStudentExamExample.Criteria studentExamCriteria = studentExamExample.createCriteria();
|
|
|
|
|
// studentExamCriteria.andUseridEqualTo(userid);
|
|
|
|
|
// teaExamAndUserDto.setName(stuUser.getName());
|
|
|
|
|
// teaExamAndUserDto.setStudentId(stuUser.getStudentId());
|
|
|
|
|
// StuClass stuClass = stuClassMapper.selectByPrimaryKey(stuUser.getClassId());
|
|
|
|
|
// teaExamAndUserDto.setClassName(stuClass.getClassName());
|
|
|
|
|
// if (StringUtils.isNotBlank(examManageId)) {
|
|
|
|
|
// studentExamCriteria.andExamManageIdEqualTo(examManageId);
|
|
|
|
|
// }
|
|
|
|
|
// List<StuStudentExamWithBLOBs> stuStudentExams = studentExamMapper.selectByExampleWithBLOBs(studentExamExample);
|
|
|
|
|
// if (!stuStudentExams.isEmpty()) {
|
|
|
|
|
// StuStudentExamWithBLOBs stuStudentExam = stuStudentExams.get(0);
|
|
|
|
|
// if (stuStudentExam != null) {
|
|
|
|
|
// if (stuStudentExam.getObjectiveScore() != null) {
|
|
|
|
|
// teaExamAndUserDto.setObjectiveScore(stuStudentExam.getObjectiveScore());
|
|
|
|
|
// }
|
|
|
|
|
// if (stuStudentExam.getCaseScore() != null) {
|
|
|
|
|
// teaExamAndUserDto.setCaseScore(stuStudentExam.getCaseScore());
|
|
|
|
|
// }
|
|
|
|
|
// if (stuStudentExam.getTotalScore() != null) {
|
|
|
|
|
// teaExamAndUserDto.setTotalScore(stuStudentExam.getTotalScore());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// list.add(teaExamAndUserDto);
|
|
|
|
|
// }
|
|
|
|
|
// return list;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<TeaExamAndUserDto> getTeaExamAndUserDtos(String schoolId, String keyWord, String classId, String examManageId) {
|
|
|
|
|
List<TeaExamAndUserDto> list = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|