获取用户当前培训班最低价格
This commit is contained in:
@@ -358,7 +358,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
wrapper.orderByAsc(CourseCatalogueEntity::getSort);
|
||||
List<Map<String,Object>> courseList = this.getBaseMapper().selectMaps(wrapper);
|
||||
for (Map<String,Object> map:courseList){
|
||||
if (!userVipService.isSociologyVip()){
|
||||
if (!userVipService.isSociologyVip((int)param.get("userId"))){
|
||||
courseEntities.add(map);
|
||||
}
|
||||
}
|
||||
@@ -373,7 +373,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
||||
}
|
||||
}
|
||||
List<CourseEntity> courseEntities = null;
|
||||
if (userVipService.isSociologyVip()){
|
||||
if (userVipService.isSociologyVip(user.getId())){
|
||||
MPJLambdaWrapper<CourseToSociologyEntity> wrapper = new MPJLambdaWrapper<>();
|
||||
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,CourseToSociologyEntity::getCourseId);
|
||||
wrapper.selectAll(CourseEntity.class);
|
||||
|
||||
Reference in New Issue
Block a user