| | |
| | | |
| | | BeanUtil.copyProperties(find, vo); |
| | | |
| | | if (queryDto.getId() % 2 == 0) { |
| | | |
| | | String tempURL = this.getBlogSourceURL(find.getArticleFileId()); |
| | | |
| | | if (StrUtil.isEmpty(tempURL)) |
| | | throw new BlogException(BlogExceptionEnum.article_file_lose); |
| | | |
| | | vo.setArticleFileURL(tempURL); |
| | | } else { |
| | | vo.setArticleFileURL("http://t.inleft.com/share/book/blog/es-search.md"); |
| | | } |
| | | |
| | | return new SuccessResponseData(vo); |
| | | } |
| | |
| | | t1.type_name AS typeName, |
| | | t2.count |
| | | FROM |
| | | blog_article_type t1, |
| | | blog_article_type t1 left join |
| | | ( |
| | | SELECT |
| | | t.id, |
| | |
| | | GROUP BY |
| | | t.id |
| | | ) t2 |
| | | WHERE |
| | | on |
| | | t1.id = t2.id |
| | | ORDER BY |
| | | t1.top_value ASC, |