|
@@ -124,12 +124,12 @@ public class FsUserCourseVideoRedPackageServiceImpl implements IFsUserCourseVide
|
|
|
if (fsUserCourseVideoRedPackageList == null || fsUserCourseVideoRedPackageList.isEmpty()) {
|
|
if (fsUserCourseVideoRedPackageList == null || fsUserCourseVideoRedPackageList.isEmpty()) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- List<Long> videoList = new ArrayList<>();
|
|
|
|
|
- fsUserCourseVideoRedPackageList = fsUserCourseVideoRedPackageList.stream().filter(e -> {
|
|
|
|
|
- boolean contains = videoList.contains(e.getVideoId());
|
|
|
|
|
- videoList.add(e.getVideoId());
|
|
|
|
|
- return !contains;
|
|
|
|
|
- }).collect(Collectors.toList());
|
|
|
|
|
|
|
+// List<Long> videoList = new ArrayList<>();
|
|
|
|
|
+// fsUserCourseVideoRedPackageList = fsUserCourseVideoRedPackageList.stream().filter(e -> {
|
|
|
|
|
+// boolean contains = videoList.contains(e.getVideoId());
|
|
|
|
|
+// videoList.add(e.getVideoId());
|
|
|
|
|
+// return !contains;
|
|
|
|
|
+// }).collect(Collectors.toList());
|
|
|
List<FsUserCourseVideoRedPackage> existingData = fsUserCourseVideoRedPackageMapper
|
|
List<FsUserCourseVideoRedPackage> existingData = fsUserCourseVideoRedPackageMapper
|
|
|
.selectByParamsList(fsUserCourseVideoRedPackageList);
|
|
.selectByParamsList(fsUserCourseVideoRedPackageList);
|
|
|
|
|
|