hejianhao
2026-08-21 46cbf6ec5597b93099b9b7ca45cec35ad060bc4f
tcm-training-admin-backend/src/main/java/com/tcm/training/admin/app/home/service/AppHomeFeaturedContentService.java
@@ -27,8 +27,6 @@
    private static final int STATUS_ENABLED = 1;
    private static final int HOME_RECOMMEND_ENABLED = 1;
    private static final int HOME_CARD_LIMIT = 2;
    private final HealthCourseMapper healthCourseMapper;
    private final HealthPopularizationMapper healthPopularizationMapper;
    private final LiveCourseCategoryMapper liveCourseCategoryMapper;
@@ -63,9 +61,8 @@
                .eq(HealthCourse::getDeleted, 0)
                .eq(HealthCourse::getStatus, STATUS_ENABLED)
                .eq(HealthCourse::getIsHomeRecommend, HOME_RECOMMEND_ENABLED)
                .orderByAsc(HealthCourse::getSort)
                .orderByDesc(HealthCourse::getId)
                .last("LIMIT " + HOME_CARD_LIMIT));
                .orderByDesc(HealthCourse::getSort)
                .orderByDesc(HealthCourse::getId));
        return records == null ? Collections.<HealthCourse>emptyList() : records;
    }
@@ -78,8 +75,7 @@
                .eq(HealthPopularization::getStatus, STATUS_ENABLED)
                .eq(HealthPopularization::getIsHomeRecommend, HOME_RECOMMEND_ENABLED)
                .orderByAsc(HealthPopularization::getSort)
                .orderByDesc(HealthPopularization::getId)
                .last("LIMIT " + HOME_CARD_LIMIT));
                .orderByDesc(HealthPopularization::getId));
        return records == null ? Collections.<HealthPopularization>emptyList() : records;
    }