|
|
@ -70,7 +70,7 @@ interface NewsResourceDao {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Transaction
|
|
|
|
@Transaction
|
|
|
|
@Query(
|
|
|
|
@Query(
|
|
|
|
value = """
|
|
|
|
value = """
|
|
|
|
SELECT id FROM news_resources
|
|
|
|
SELECT id FROM news_resources
|
|
|
|
WHERE
|
|
|
|
WHERE
|
|
|
|
CASE WHEN :useFilterNewsIds
|
|
|
|
CASE WHEN :useFilterNewsIds
|
|
|
@ -87,7 +87,8 @@ interface NewsResourceDao {
|
|
|
|
ELSE 1
|
|
|
|
ELSE 1
|
|
|
|
END
|
|
|
|
END
|
|
|
|
ORDER BY publish_date DESC
|
|
|
|
ORDER BY publish_date DESC
|
|
|
|
""")
|
|
|
|
""",
|
|
|
|
|
|
|
|
)
|
|
|
|
fun getNewsResourceIds(
|
|
|
|
fun getNewsResourceIds(
|
|
|
|
useFilterTopicIds: Boolean = false,
|
|
|
|
useFilterTopicIds: Boolean = false,
|
|
|
|
filterTopicIds: Set<String> = emptySet(),
|
|
|
|
filterTopicIds: Set<String> = emptySet(),
|
|
|
|