新增蓝色主题模版

This commit is contained in:
xiongxiaoyang
2020-12-27 09:43:45 +08:00
parent c01097cd5f
commit 0428356bd4
179 changed files with 6044 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class NewsServiceImpl implements NewsService {
public List<News> listIndexNews() {
List<News> result = (List<News>) cacheService.getObject(CacheKey.INDEX_NEWS_KEY);
if(result == null || result.size() == 0) {
SelectStatementProvider selectStatement = select(id, catName, catId, title)
SelectStatementProvider selectStatement = select(id, catName, catId, title,createTime)
.from(news)
.orderBy(createTime.descending())
.limit(2)

View File

@ -21,6 +21,12 @@ public class BookSettingVO extends BookSetting implements Serializable {
private Float score;
private Integer catId;
private String catName;
private Byte bookStatus;
@Override
public String toString() {

View File

@ -4,7 +4,7 @@
<mapper namespace="com.java2nb.novel.mapper.FrontBookSettingMapper">
<select id="listVO" resultType="com.java2nb.novel.vo.BookSettingVO">
select t1.book_id,t1.type,t1.sort,t2.book_name,t2.author_name,t2.pic_url,t2.book_desc,t2.score
select t1.book_id,t1.type,t1.sort,t2.book_name,t2.author_name,t2.pic_url,t2.book_desc,t2.score,t2.cat_id,t2.cat_name,t2.book_status
from book_setting t1 inner join book t2
on t1.book_id = t2.id
order by t1.sort