|
|
@ -132,6 +132,8 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont |
|
|
|
QueryWrapper<SysContent> queryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<SysContent> queryWrapper = new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("deleted", Constant.DATA_NOT_DELETED); |
|
|
|
queryWrapper.eq("deleted", Constant.DATA_NOT_DELETED); |
|
|
|
queryWrapper.eq("site_id", siteId); |
|
|
|
queryWrapper.eq("site_id", siteId); |
|
|
|
|
|
|
|
queryWrapper.eq("is_release", Constant.ARTICLE_PUBLISHED); |
|
|
|
|
|
|
|
queryWrapper.eq("is_disable", 0); |
|
|
|
queryWrapper.last(" ORDER BY total_browsing desc LIMIT 0,5"); |
|
|
|
queryWrapper.last(" ORDER BY total_browsing desc LIMIT 0,5"); |
|
|
|
|
|
|
|
|
|
|
|
List<SysContent> contentList = baseMapper.selectList(queryWrapper); |
|
|
|
List<SysContent> contentList = baseMapper.selectList(queryWrapper); |
|
|
|