Explorar o código

处理营期批量设置红包金额不成功问题

yjwang hai 1 mes
pai
achega
244a511203

+ 6 - 6
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoRedPackageServiceImpl.java

@@ -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);