|
|
@@ -98,7 +98,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.text} > 0
|
|
|
and type & ${BookType.local} = 0
|
|
|
@@ -134,7 +135,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
ORDER BY durChapterTime DESC
|
|
|
"""
|
|
|
@@ -167,7 +169,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} > 0
|
|
|
"""
|
|
|
@@ -200,7 +203,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
"""
|
|
|
@@ -238,7 +242,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.audio} = 0 and type & ${BookType.local} = 0
|
|
|
and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0
|
|
|
@@ -277,7 +282,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.local} > 0
|
|
|
and ((SELECT sum(groupId) FROM book_groups where groupId > 0) & `group`) = 0
|
|
|
@@ -311,7 +317,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE (`group` & :group) > 0
|
|
|
"""
|
|
|
@@ -346,7 +353,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE name like '%'||:key||'%' or author like '%'||:key||'%' or originName like '%'||:key||'%'
|
|
|
"""
|
|
|
@@ -379,7 +387,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.updateError} > 0
|
|
|
order by durChapterTime desc
|
|
|
@@ -413,7 +422,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE durChapterIndex = 0 AND durChapterPos = 0
|
|
|
"""
|
|
|
@@ -446,7 +456,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1
|
|
|
"""
|
|
|
@@ -479,7 +490,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex > 0 AND durChapterIndex < totalChapterNum - 1
|
|
|
"""
|
|
|
@@ -512,7 +524,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.image} > 0
|
|
|
"""
|
|
|
@@ -545,7 +558,8 @@ interface BookDao {
|
|
|
`order`,
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
- kind
|
|
|
+ kind,
|
|
|
+ wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0
|
|
|
"""
|
|
|
@@ -721,7 +735,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
ORDER BY durChapterTime DESC
|
|
|
LIMIT 10
|
|
|
@@ -736,7 +750,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0 AND type & ${BookType.local} = 0
|
|
|
AND ((SELECT COALESCE(SUM(groupId), 0) FROM book_groups WHERE groupId > 0) & `group`) = 0
|
|
|
@@ -754,7 +768,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -770,7 +784,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} > 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -786,7 +800,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} = 0 AND type & ${BookType.local} = 0
|
|
|
AND ((SELECT COALESCE(SUM(groupId), 0) FROM book_groups WHERE groupId > 0) & `group`) = 0
|
|
|
@@ -803,7 +817,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
AND ((SELECT COALESCE(SUM(groupId), 0) FROM book_groups WHERE groupId > 0) & `group`) = 0
|
|
|
@@ -820,7 +834,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.image} > 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -836,7 +850,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -852,7 +866,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.updateError} > 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -868,7 +882,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE durChapterIndex = 0 AND durChapterPos = 0
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -884,7 +898,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex > 0 AND durChapterIndex < totalChapterNum - 1
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -900,7 +914,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -916,7 +930,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind
|
|
|
+ ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
FROM books
|
|
|
WHERE (`group` & :groupId) > 0
|
|
|
ORDER BY durChapterTime DESC
|