|
|
@@ -113,6 +113,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.text} > 0
|
|
|
@@ -154,6 +155,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE $PUBLIC_BOOK_FILTER
|
|
|
@@ -189,6 +191,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} > 0
|
|
|
@@ -224,6 +227,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
@@ -264,6 +268,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.audio} = 0 and type & ${BookType.local} = 0
|
|
|
@@ -305,6 +310,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.local} > 0
|
|
|
@@ -341,6 +347,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE (`group` & :group) > 0
|
|
|
@@ -378,9 +385,11 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
- WHERE (name like '%'||:key||'%' or author like '%'||:key||'%' or originName like '%'||:key||'%')
|
|
|
+ WHERE (name like '%'||:key||'%' or author like '%'||:key||'%' or originName like '%'||:key||'%'
|
|
|
+ or kind like '%'||:key||'%' or customTag like '%'||:key||'%')
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
"""
|
|
|
)
|
|
|
@@ -413,6 +422,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
where type & ${BookType.updateError} > 0
|
|
|
@@ -449,6 +459,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE durChapterIndex = 0 AND durChapterPos = 0
|
|
|
@@ -484,6 +495,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1
|
|
|
@@ -521,6 +533,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1 AND canUpdate = 1
|
|
|
@@ -558,6 +571,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1 AND canUpdate = 0
|
|
|
@@ -593,6 +607,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex > 0 AND durChapterIndex < totalChapterNum - 1
|
|
|
@@ -628,6 +643,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.image} > 0
|
|
|
@@ -663,6 +679,7 @@ interface BookDao {
|
|
|
canUpdate,
|
|
|
ifnull(customIntro, intro) as intro,
|
|
|
kind,
|
|
|
+ customTag,
|
|
|
wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0
|
|
|
@@ -875,7 +892,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE $PUBLIC_BOOK_FILTER
|
|
|
ORDER BY durChapterTime DESC
|
|
|
@@ -891,7 +908,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0 AND type & ${BookType.local} = 0
|
|
|
AND ($PUBLIC_GROUP_MASK & `group`) = 0
|
|
|
@@ -910,7 +927,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -927,7 +944,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} > 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -944,7 +961,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.audio} = 0 AND type & ${BookType.local} = 0
|
|
|
AND ($PUBLIC_GROUP_MASK & `group`) = 0
|
|
|
@@ -962,7 +979,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.local} > 0
|
|
|
AND ($PUBLIC_GROUP_MASK & `group`) = 0
|
|
|
@@ -980,7 +997,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.image} > 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -997,7 +1014,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.text} > 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1014,7 +1031,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE type & ${BookType.updateError} > 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1031,7 +1048,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE durChapterIndex = 0 AND durChapterPos = 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1048,7 +1065,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex > 0 AND durChapterIndex < totalChapterNum - 1
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1065,7 +1082,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1082,7 +1099,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1 AND canUpdate = 1
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1099,7 +1116,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE totalChapterNum > 0 AND durChapterIndex >= totalChapterNum - 1 AND canUpdate = 0
|
|
|
AND $PUBLIC_BOOK_FILTER
|
|
|
@@ -1116,7 +1133,7 @@ interface BookDao {
|
|
|
durChapterPos, latestChapterTitle, latestChapterTime,
|
|
|
lastCheckCount, totalChapterNum, durChapterIndex,
|
|
|
type, `group`, `order`, canUpdate,
|
|
|
- ifnull(customIntro, intro) as intro, kind, wordCount
|
|
|
+ ifnull(customIntro, intro) as intro, kind, customTag, wordCount
|
|
|
FROM books
|
|
|
WHERE (`group` & :groupId) > 0
|
|
|
AND ((SELECT isPrivate FROM book_groups WHERE groupId = :groupId) = 1 OR $PUBLIC_BOOK_FILTER)
|