|
@@ -43,6 +43,7 @@ public class NewsServiceImpl extends ServiceImpl<NewsMapper, NewsEntity> impleme
|
|
|
.eq(NewsEntity::getIsDelete, IsDeleteEnum.NORMAL.value())
|
|
|
.ge(ObjectUtil.isNotNull(publishStartTime), NewsEntity::getPublishTime, publishStartTime)
|
|
|
.le(ObjectUtil.isNotNull(publishEndTime), NewsEntity::getPublishTime, publishEndTime)
|
|
|
+ .orderByAsc(NewsEntity::getSortNo)
|
|
|
.orderByDesc(NewsEntity::getCreateTime));
|
|
|
return new PageUtils(page);
|
|
|
}
|