|
|
|
@ -221,11 +221,18 @@ public class TeaGradeManageController {
|
|
|
|
|
if (!teaAndStudentExams.isEmpty()) {
|
|
|
|
|
TeaAndStudentExam teaAndStudentExam = teaAndStudentExams.get(0);
|
|
|
|
|
String classId = teaAndStudentExam.getClassId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String[] split = classId.split(",");
|
|
|
|
|
for (String singleId : split) {
|
|
|
|
|
StuClass stuClass = stuClassMapper.selectByPrimaryKey(singleId);
|
|
|
|
|
List<String> idlist = Arrays.asList(split);
|
|
|
|
|
|
|
|
|
|
StuClassExample example =new StuClassExample();
|
|
|
|
|
example.createCriteria().andClassIdIn(idlist);
|
|
|
|
|
List<StuClass> stuClassList = stuClassMapper.selectByExample(example);
|
|
|
|
|
|
|
|
|
|
for (StuClass stuClass : stuClassList) {
|
|
|
|
|
String className = stuClass.getClassName();
|
|
|
|
|
map.put(singleId, className);
|
|
|
|
|
map.put(stuClass.getId(), className);
|
|
|
|
|
}
|
|
|
|
|
list.add(map);
|
|
|
|
|
}
|
|
|
|
@ -475,7 +482,9 @@ public class TeaGradeManageController {
|
|
|
|
|
StuUser user = userMapper.selectByPrimaryKey(trainingReport.getUserId());
|
|
|
|
|
trainingReportDto.setName(user.getName());
|
|
|
|
|
trainingReportDto.setStudentId(user.getStudentId());
|
|
|
|
|
StuClass stuClass = stuClassMapper.selectByPrimaryKey(user.getClassId());
|
|
|
|
|
StuClassExample example =new StuClassExample();
|
|
|
|
|
List<StuClass> stuClassList = stuClassMapper.selectByExample(example);
|
|
|
|
|
StuClass stuClass = stuClassList.get(0);
|
|
|
|
|
trainingReportDto.setClassName(stuClass.getClassName());
|
|
|
|
|
list.add(trainingReportDto);
|
|
|
|
|
}
|
|
|
|
|