|
@@ -27,6 +27,7 @@ import com.zhongzheng.modules.grade.bo.ClassGradeUserEditBo;
|
|
|
import com.zhongzheng.modules.grade.domain.ClassGradeUser;
|
|
|
import com.zhongzheng.modules.grade.mapper.ClassGradeUserMapper;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.Collection;
|
|
@@ -207,7 +208,14 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
userPeriodQueryBo.setChapterId(classPeriodChapterVo.getId());
|
|
|
userPeriodQueryBo.setModuleId(classPeriodVo.getId());
|
|
|
List<UserPeriodStatusVo> userPeriodStatusVos = userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo);
|
|
|
-
|
|
|
+ if (!CollectionUtils.isEmpty(userPeriodStatusVos)){
|
|
|
+ UserPeriodStatusVo userPeriodStatusVo = userPeriodStatusVos.get(0);
|
|
|
+ LambdaQueryWrapper<UserStudyRecordPhoto> lqw = Wrappers.lambdaQuery();
|
|
|
+ lqw.eq(UserStudyRecordPhoto::getPeriodId,userPeriodStatusVo.getId());
|
|
|
+ classPeriodSectionVo.setUserStudyRecordPhotoList(entity2PhotoVo(userStudyRecordPhotoService.list(lqw)));
|
|
|
+ classPeriodSectionVo.setNumIndex(1L);
|
|
|
+ classPeriodSectionVo.setNumList(Convert.toLong(userPeriodStatusVos.size()));
|
|
|
+ }
|
|
|
}
|
|
|
classPeriodSectionVos.addAll(baseMapper.listperiodExam(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId()));
|
|
|
classPeriodChapterVo.setClassPeriodSectionList(classPeriodSectionVos);
|