吴门医述我的课程放开心理学模块
This commit is contained in:
@@ -163,7 +163,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
public Page<CourseEntity> getUserCourseBuy(Map<String, Object> param) {
|
||||
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper<>();
|
||||
wrapper.leftJoin(CourseToMedicine.class,CourseToMedicine::getCourseId,CourseEntity::getId);
|
||||
if (userVipService.noMedicalVip()){
|
||||
if (userVipService.isSociologyVip()){
|
||||
wrapper.leftJoin(CourseCatalogueEntity.class,CourseCatalogueEntity::getCourseId,CourseEntity::getId);
|
||||
wrapper.leftJoin(UserCourseBuyEntity.class,UserCourseBuyEntity::getCatalogueId,CourseCatalogueEntity::getId);
|
||||
wrapper.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId());
|
||||
@@ -171,6 +171,8 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
List list = new ArrayList<>();//通过顶级标签获取最下层标签
|
||||
if (userVipService.isMedicalVip()){
|
||||
userVipService.bottomLabel(1,list);
|
||||
}
|
||||
if (userVipService.isChineseWesternVip()){
|
||||
userVipService.bottomLabel(74,list);
|
||||
}
|
||||
if (userVipService.isAcupunctureVip()){
|
||||
@@ -179,6 +181,9 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
if (userVipService.istumorVip()){
|
||||
userVipService.bottomLabel(5,list);
|
||||
}
|
||||
if (userVipService.isPsycheVip()){
|
||||
userVipService.bottomLabel(4,list);
|
||||
}
|
||||
wrapper.in(CourseToMedicine::getMedicalId,list);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(param.get("medicalId").toString())){
|
||||
|
||||
Reference in New Issue
Block a user