diff --git a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionLogService.java b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionLogService.java index 17abe8dc..a21400d2 100644 --- a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionLogService.java +++ b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseQuestionLogService.java @@ -99,7 +99,7 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService> studentMap = new HashMap<>(); if (ObjectUtil.isNotEmpty(list)) { - String studentIds = list.stream().map(TeacherOpenCourseQuestionLog::getStudentId).map(Object::toString).collect(joining(",")); + String studentIds = list.stream().map(TeacherOpenCourseQuestionLog::getStudentId).map(Object::toString).distinct().collect(joining(",")); List studentList = studentDao.getByIds(studentIds); dictParser(studentList); if (ObjectUtil.isNotEmpty(studentList)) { @@ -113,12 +113,8 @@ public class TeacherOpenCourseQuestionLogService extends CoreBaseService