mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-24 03:29:29 +08:00
优化线上课列表
This commit is contained in:
@@ -95,7 +95,7 @@ public class CourseController {
|
||||
|
||||
Date now = new Date();
|
||||
|
||||
if (req.getHours() != null) {//无章节课时配置
|
||||
if (req.getHours().size() > 0) {//无章节课时配置
|
||||
List<CourseHour> insertHours = new ArrayList<>();
|
||||
final Integer[] chapterSort = {0};
|
||||
for (CourseRequest.HourItem hourItem : req.getHours()) {
|
||||
@@ -117,6 +117,7 @@ public class CourseController {
|
||||
if (req.getChapters() == null || req.getChapters().size() == 0) {
|
||||
return JsonResponse.error("请配置课时");
|
||||
}
|
||||
|
||||
List<CourseHour> insertHours = new ArrayList<>();
|
||||
final Integer[] chapterSort = {0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user