|
@@ -24,6 +24,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
import java.util.function.Function;
|
|
import java.util.function.Function;
|
|
@@ -206,7 +207,9 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
|
|
if(!StringUtils.equals(studentLessonTrainingDetail.getHomeworkType(),"VIDEO")){
|
|
if(!StringUtils.equals(studentLessonTrainingDetail.getHomeworkType(),"VIDEO")){
|
|
SysMusicScore sysMusicScore = musicScoreMap.get(studentLessonTrainingDetail.getMusicScoreId().intValue());
|
|
SysMusicScore sysMusicScore = musicScoreMap.get(studentLessonTrainingDetail.getMusicScoreId().intValue());
|
|
if (sysMusicScore != null) {
|
|
if (sysMusicScore != null) {
|
|
- studentLessonTrainingDetail.setValidFlag(true);
|
|
|
|
|
|
+ if(sysMusicScore.getShowFlag() == 1 && sysMusicScore.getDelFlag() == 0){
|
|
|
|
+ studentLessonTrainingDetail.setValidFlag(true);
|
|
|
|
+ }
|
|
studentLessonTrainingDetail.setMusicScoreName(sysMusicScore.getName());
|
|
studentLessonTrainingDetail.setMusicScoreName(sysMusicScore.getName());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -236,7 +239,9 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
|
|
if(StringUtils.equals(studentLessonTrainingDetail.getHomeworkType(),"VIDEO")){
|
|
if(StringUtils.equals(studentLessonTrainingDetail.getHomeworkType(),"VIDEO")){
|
|
CbsMaterialWrapper.MaterialDto materialDto = materialDtoMap.get(studentLessonTrainingDetail.getMusicScoreId());
|
|
CbsMaterialWrapper.MaterialDto materialDto = materialDtoMap.get(studentLessonTrainingDetail.getMusicScoreId());
|
|
if (materialDto != null) {
|
|
if (materialDto != null) {
|
|
- studentLessonTrainingDetail.setValidFlag(true);
|
|
|
|
|
|
+ if(!materialDto.getDelFlag() && materialDto.getEnableFlag()){
|
|
|
|
+ studentLessonTrainingDetail.setValidFlag(true);
|
|
|
|
+ }
|
|
studentLessonTrainingDetail.setMusicScoreName(materialDto.getName());
|
|
studentLessonTrainingDetail.setMusicScoreName(materialDto.getName());
|
|
studentLessonTrainingDetail.setContent(materialDto.getContent());
|
|
studentLessonTrainingDetail.setContent(materialDto.getContent());
|
|
}
|
|
}
|