|
|
@@ -3703,13 +3703,19 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
UserStudyTimeVo timeVo = JSONArray.parseObject(jsonObject1.get("data").toString(), UserStudyTimeVo.class);
|
|
|
if (ObjectUtils.isNotNull(timeVo) && ObjectUtils.isNotNull(timeVo.getStudyStartTime()) && timeVo.getStudyFlag()){
|
|
|
//旧系统正在学习中
|
|
|
- return 1L;
|
|
|
+ throw new CustomException("请把旧云学堂课程学习完成,再学习另一个课程");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
throw new CustomException("旧系统二建继续校验接口请求失败"+e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
- return baseMapper.checkFinishRequiredCourse(bo);
|
|
|
+ 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()+"】学习完成,再学习另一个课程");
|
|
|
+ }
|
|
|
+ return 0L;
|
|
|
}
|
|
|
|
|
|
@Override
|