Commit 2c10bbff authored by liuyang's avatar liuyang

fixed bug

parent 1b79835c
......@@ -102,12 +102,15 @@ public class CourseService extends ServiceImpl<CourseMapper, CoursePO> {
}
private void setFavorite(CourseDetailModel model) {
if (UserContext.getUser() != null){
UserFavoritesPO po = userFavoritesService.findByUserIdAndCourseId(UserContext.getUserId(),model.getId());
if (po != null){
model.setFavorite(true);
}
}
}
private void addOrgInfo(CourseDetailModel model) {
if (model.getAllow() == CourseAllowEnum.SPECIFY){
List<CourseAllowEnterpriseModel> allowOrgList = baseMapper.selectOrgListByCourseId(model.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment