| | |
| | | .eq(HealthPopularization::getDeleted, 0) |
| | | .eq(HealthPopularization::getStatus, STATUS_ENABLED) |
| | | .eq(HealthPopularization::getIsHomeRecommend, HOME_RECOMMEND_ENABLED) |
| | | .orderByAsc(HealthPopularization::getSort) |
| | | .orderByDesc(HealthPopularization::getSort) |
| | | .orderByDesc(HealthPopularization::getId)); |
| | | return records == null ? Collections.<HealthPopularization>emptyList() : records; |
| | | } |
| | |
| | | Integer status) { |
| | | LambdaQueryWrapper<HealthPopularization> qw = new LambdaQueryWrapper<HealthPopularization>() |
| | | .eq(HealthPopularization::getDeleted, 0) |
| | | .orderByAsc(HealthPopularization::getSort) |
| | | .orderByDesc(HealthPopularization::getSort) |
| | | .orderByDesc(HealthPopularization::getId); |
| | | String trimmedKeyword = trimToNull(keyword); |
| | | if (trimmedKeyword != null) { |