获取用户当前培训班最低价格
This commit is contained in:
@@ -38,7 +38,7 @@ public class PsycheCourseController {
|
||||
MPJLambdaWrapper<CourseEntity> wrapper = new MPJLambdaWrapper<>();
|
||||
wrapper.distinct();
|
||||
wrapper.rightJoin(CourseToPsyche.class,CourseToPsyche::getCourseId,CourseEntity::getId);
|
||||
if (!userVipService.isPsycheVip()){
|
||||
if (!userVipService.isPsycheVip(ShiroUtils.getUId())){
|
||||
wrapper.leftJoin(UserCourseBuyEntity.class,UserCourseBuyEntity::getCourseId,CourseEntity::getId);
|
||||
wrapper.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId());
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class PsycheCourseController {
|
||||
wrapper.orderByAsc(CourseCatalogueEntity::getSort);
|
||||
List<Map<String,Object>> list = courseService.listMaps(wrapper);
|
||||
for (Map<String,Object> courseEntity : list) {
|
||||
if (!userVipService.isPsycheVip()){
|
||||
if (!userVipService.isPsycheVip(ShiroUtils.getUId())){
|
||||
courseEntities.add(courseEntity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user