获取用户当前培训班最低价格

This commit is contained in:
wuchunlei
2025-04-14 15:50:27 +08:00
parent a73500ee32
commit 2b57f006a5
10 changed files with 142 additions and 40 deletions

View File

@@ -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);