feat: 优化代码

pull/182/head
kunfei 5 years ago
parent a35afa87ad
commit f5330a07a5
  1. 2
      app/src/main/java/io/legado/app/data/dao/RssArticleDao.kt

@ -12,7 +12,7 @@ interface RssArticleDao {
fun get(origin: String, link: String): RssArticle?
@Query(
"""select t1.link, t1.origin, t1.`order`, t1.title, t1.content, t1.description, t1.image, t1.pubDate, ifNull(t2.read, 0) as read
"""select t1.link, t1.sort, t1.origin, t1.`order`, t1.title, t1.content, t1.description, t1.image, t1.pubDate, ifNull(t2.read, 0) as read
from rssArticles as t1 left join rssReadRecords as t2
on t1.link = t2.record where origin = :origin order by `order` desc"""
)

Loading…
Cancel
Save