|
@@ -5228,18 +5228,6 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
System.out.println("重复课程数量:" + courseRepeatIdMap.size());
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- CourseRepeatCheckDto c = new CourseRepeatCheckDto();
|
|
|
- c.setCourseId((long) 1);
|
|
|
- Map<Long, Map<String, Object>> courseRepeatIdMap = new HashMap<>();
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
- result.put("repeatCourseId", new ArrayList<>());
|
|
|
- courseRepeatIdMap.put(c.getCourseId(), result);
|
|
|
- if(CollectionUtils.isEmpty(((List<Long>)courseRepeatIdMap.get(c.getCourseId()).get("repeatCourseId")))){
|
|
|
- courseRepeatIdMap.remove(c.getCourseId());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void courseMerge(CourseMergeDto courseMergeInfo) {
|