|
|
|
@ -85,20 +85,20 @@ public class TeaGradeManageController {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
List<TeaExamManageCountDto> teaExamManageCountDtos = new ArrayList<>();
|
|
|
|
|
Map<String, StuUser> userMap = new HashMap<>();
|
|
|
|
|
Map<Integer, StuUser> userMap = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
List<String> userIds = new ArrayList<>();
|
|
|
|
|
List<Integer> userIds = new ArrayList<>();
|
|
|
|
|
for (TeaExamManage teaExamManage : teaExamManages) {
|
|
|
|
|
String userId = teaExamManage.getUserId();
|
|
|
|
|
userIds.add(userId);
|
|
|
|
|
Integer zyUserId = Integer.parseInt(teaExamManage.getUserId()); //这里是智云 zyUserId
|
|
|
|
|
userIds.add(zyUserId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//存储用户信息
|
|
|
|
|
StuUserExample example =new StuUserExample();
|
|
|
|
|
example.createCriteria().andSystemOnwerEqualTo(systemOwner).andUseridIn(userIds);
|
|
|
|
|
example.createCriteria().andSystemOnwerEqualTo(systemOwner).andZyUseridIn(userIds);
|
|
|
|
|
List<StuUser> stuUsers = userMapper.selectByExample(example);
|
|
|
|
|
for (StuUser stuUser : stuUsers) {
|
|
|
|
|
userMap.put(stuUser.getUserid(), stuUser);
|
|
|
|
|
userMap.put(stuUser.getZyUserid(), stuUser);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (TeaExamManage teaExamManage : teaExamManages) {
|
|
|
|
@ -132,7 +132,7 @@ public class TeaGradeManageController {
|
|
|
|
|
copyexamManageWithBLOBs.setExamTime(concatenatedTimeString); //考试时间
|
|
|
|
|
|
|
|
|
|
String userId = teaExamManage.getUserId();
|
|
|
|
|
StuUser stuUser = userMap.get(userId);
|
|
|
|
|
StuUser stuUser = userMap.get(Integer.parseInt(userId));
|
|
|
|
|
copyexamManageWithBLOBs.setName(stuUser.getName()); //发布人
|
|
|
|
|
teaExamManageCountDtos.add(copyexamManageWithBLOBs);
|
|
|
|
|
}
|
|
|
|
|