|
@@ -112,7 +112,6 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
|
|
|
|
// 1.判断曲目启用
|
|
|
for (CourseCoursewareVo record : records) {
|
|
|
- record.setStatus(YesOrNoEnum.NO);
|
|
|
if (record.getMusicStatus().equals(YesOrNoEnum.NO)) {
|
|
|
record.setStatus(YesOrNoEnum.NO);
|
|
|
}
|
|
@@ -154,7 +153,11 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
|
record.setStatus(YesOrNoEnum.YES);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ for (CourseCoursewareVo record : records) {
|
|
|
+ if (record.getStatus() == null) {
|
|
|
+ record.setStatus(YesOrNoEnum.NO);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
courseCoursewareVoIPage.setRecords(records);
|
|
|
return courseCoursewareVoIPage;
|