修改找不到顶级标签bug

This commit is contained in:
wuchunlei
2025-06-13 14:41:12 +08:00
parent e2845ce991
commit e35d95fc29

View File

@@ -186,6 +186,7 @@ public class UserVipServiceImpl extends ServiceImpl<UserVipDao, UserVip> impleme
.eq(CourseToMedicine::getCourseId,courseId)); .eq(CourseToMedicine::getCourseId,courseId));
for (CourseToMedicine ctm:mlist) { for (CourseToMedicine ctm:mlist) {
CourseMedicine cm = topLabel(ctm.getMedicalId()); CourseMedicine cm = topLabel(ctm.getMedicalId());
if (cm != null){
if (cm.getId()==1){//中医学 if (cm.getId()==1){//中医学
set.add(4); set.add(4);
}else if (cm.getId() == 74) {//中西汇通 }else if (cm.getId() == 74) {//中西汇通
@@ -198,6 +199,7 @@ public class UserVipServiceImpl extends ServiceImpl<UserVipDao, UserVip> impleme
set.add(8); set.add(8);
} }
} }
}
List<CourseToSociologyEntity> slist = courseToSociologyDao.selectList(new LambdaQueryWrapper<CourseToSociologyEntity>() List<CourseToSociologyEntity> slist = courseToSociologyDao.selectList(new LambdaQueryWrapper<CourseToSociologyEntity>()
.eq(CourseToSociologyEntity::getCourseId,courseId)); .eq(CourseToSociologyEntity::getCourseId,courseId));
if (slist.size()>0){ if (slist.size()>0){