|
@@ -86,7 +86,7 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
Map<String, String> courseCodeMap = (Map<String, String>) map.get("courseCodeMap");
|
|
Map<String, String> courseCodeMap = (Map<String, String>) map.get("courseCodeMap");
|
|
QueryWrapper<TEExamCourse> teExamCourseQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<TEExamCourse> teExamCourseQueryWrapper = new QueryWrapper<>();
|
|
Set<String> courseCodeSet = courseCodeMap.keySet().stream().collect(Collectors.toSet());
|
|
Set<String> courseCodeSet = courseCodeMap.keySet().stream().collect(Collectors.toSet());
|
|
- teExamCourseQueryWrapper.lambda().in(TEExamCourse::getCourseCode, courseCodeSet);
|
|
|
|
|
|
+ teExamCourseQueryWrapper.lambda().in(TEExamCourse::getCourseCode, courseCodeSet).eq(TEExamCourse::getExamId, examId);
|
|
List<TEExamCourse> teExamCourseList = teExamCourseService.list(teExamCourseQueryWrapper);
|
|
List<TEExamCourse> teExamCourseList = teExamCourseService.list(teExamCourseQueryWrapper);
|
|
Integer examCount = Integer.parseInt(String.valueOf(map.get("examCount")));
|
|
Integer examCount = Integer.parseInt(String.valueOf(map.get("examCount")));
|
|
if (Objects.nonNull(teExamCourseList) && teExamCourseList.size() > 0) {
|
|
if (Objects.nonNull(teExamCourseList) && teExamCourseList.size() > 0) {
|