解决点击章节时我的见解undefined
This commit is contained in:
@@ -73,7 +73,7 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl<CourseCatalog
|
||||
flag.put("current",getCurrentVideo(chapterId));
|
||||
|
||||
List<UserCourseBuyEntity> userCourseBuyEntities = userCourseBuyDao.selectList(new LambdaQueryWrapper<UserCourseBuyEntity>().eq(UserCourseBuyEntity::getUserId, ShiroUtils.getUId()).eq(UserCourseBuyEntity::getCatalogueId, byId.getCatalogueId()));
|
||||
if (userCourseBuyEntities.size()==1){
|
||||
if (userCourseBuyEntities.size()>0){
|
||||
flag.put("buy",userCourseBuyEntities.get(0));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user