|
@@ -3812,12 +3812,11 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
} catch (Exception e) {
|
|
|
throw new CustomException(e.getMessage());
|
|
|
}
|
|
|
- }
|
|
|
- Long aLong = baseMapper.checkFinishRequiredCourse(bo);
|
|
|
- if (aLong > 0){
|
|
|
List<Long> goodsIds = baseMapper.getFinishRequiredCourse(bo);
|
|
|
- Goods goods = iGoodsService.getById(goodsIds.get(0));
|
|
|
- throw new CustomException("请按顺序学习,把【"+goods.getGoodsName()+"】学习完成,再学习另一个课程");
|
|
|
+ if(Validator.isNotEmpty(goodsIds)&&goodsIds.size()>0){
|
|
|
+ Goods goods = iGoodsService.getById(goodsIds.get(0));
|
|
|
+ throw new CustomException("请按顺序学习,把【"+goods.getGoodsName()+"】学习完成,再学习另一个课程");
|
|
|
+ }
|
|
|
}
|
|
|
return 0L;
|
|
|
}
|