mirror of
https://github.com/201206030/novel-plus.git
synced 2025-06-24 04:46:37 +00:00
新增蓝色主题模版
This commit is contained in:
@ -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)
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user