|
@@ -30,20 +30,20 @@ public class CourseScheduleStatisticsServiceImpl extends BaseServiceImpl<Long, C
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void courseScheduleStatistics() {
|
|
|
- List<Long> delCourseId = new ArrayList<>();
|
|
|
- List<CourseScheduleStatistics> updateCourseScheduleStatisticsList = courseScheduleStatisticsDao.queryUpdateCourseScheduleStatistics();
|
|
|
- if(CollectionUtils.isNotEmpty(updateCourseScheduleStatisticsList)){
|
|
|
- courseScheduleStatisticsDao.batchUpdate(updateCourseScheduleStatisticsList);
|
|
|
- delCourseId.addAll(updateCourseScheduleStatisticsList.stream().map(e -> e.getCourseScheduleId()).collect(Collectors.toList()));
|
|
|
- }
|
|
|
+// List<Long> delCourseId = new ArrayList<>();
|
|
|
+// List<CourseScheduleStatistics> updateCourseScheduleStatisticsList = courseScheduleStatisticsDao.queryUpdateCourseScheduleStatistics();
|
|
|
+// if(CollectionUtils.isNotEmpty(updateCourseScheduleStatisticsList)){
|
|
|
+// courseScheduleStatisticsDao.batchUpdate(updateCourseScheduleStatisticsList);
|
|
|
+// delCourseId.addAll(updateCourseScheduleStatisticsList.stream().map(e -> e.getCourseScheduleId()).collect(Collectors.toList()));
|
|
|
+// }
|
|
|
// List<CourseScheduleStatistics> insertCourseScheduleStatisticsList = courseScheduleStatisticsDao.queryInsertCourseScheduleStatistics();
|
|
|
// if(CollectionUtils.isNotEmpty(insertCourseScheduleStatisticsList)){
|
|
|
// courseScheduleStatisticsDao.batchInsert(insertCourseScheduleStatisticsList);
|
|
|
// delCourseId.addAll(insertCourseScheduleStatisticsList.stream().map(e -> e.getCourseScheduleId()).collect(Collectors.toList()));
|
|
|
// }
|
|
|
- delCourseId.removeAll(Collections.singleton(null));
|
|
|
- if(CollectionUtils.isNotEmpty(delCourseId)){
|
|
|
- courseScheduleStatisticsDao.delWaitByCourseId(delCourseId);
|
|
|
- }
|
|
|
+// delCourseId.removeAll(Collections.singleton(null));
|
|
|
+// if(CollectionUtils.isNotEmpty(delCourseId)){
|
|
|
+// courseScheduleStatisticsDao.delWaitByCourseId(delCourseId);
|
|
|
+// }
|
|
|
}
|
|
|
}
|