Ver código fonte

课时bug修复

honorfire 7 meses atrás
pai
commit
97d835a897

+ 3 - 1
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/controller/CourseClassHourController.java

@@ -129,7 +129,8 @@ public class CourseClassHourController {
             //先删除过往关联内容
             //先删除过往关联内容
             Map relateParam =new HashMap();
             Map relateParam =new HashMap();
             relateParam.put("mainId", classHour.getId());
             relateParam.put("mainId", classHour.getId());
-            relateParam.put("chapterhourType","0");
+            relateParam.put("chapterhourType","1");
+            relateParam.put("infoType","0");
             List<CourseRelate> delCourseRelateList=courseRelateService.wrapperList(relateParam);
             List<CourseRelate> delCourseRelateList=courseRelateService.wrapperList(relateParam);
             List<String> delCourseRelateIdList=CollStreamUtil.toList(delCourseRelateList, CourseRelate::getId);
             List<String> delCourseRelateIdList=CollStreamUtil.toList(delCourseRelateList, CourseRelate::getId);
             courseRelateService.deleteByIds(delCourseRelateIdList);
             courseRelateService.deleteByIds(delCourseRelateIdList);
@@ -177,6 +178,7 @@ public class CourseClassHourController {
         Map funcTypeParam =new HashMap();
         Map funcTypeParam =new HashMap();
         funcTypeParam.put("mainId", classHourIdParam.getId());
         funcTypeParam.put("mainId", classHourIdParam.getId());
         funcTypeParam.put("chapterhourType","1");
         funcTypeParam.put("chapterhourType","1");
+        funcTypeParam.put("infoType","0");
         List<CourseRelate> relateList=courseRelateService.wrapperList(funcTypeParam);
         List<CourseRelate> relateList=courseRelateService.wrapperList(funcTypeParam);
         List<String>funcTypeList=CollStreamUtil.toList(relateList, CourseRelate::getFuncType);
         List<String>funcTypeList=CollStreamUtil.toList(relateList, CourseRelate::getFuncType);
         //去重类型
         //去重类型