cloudroam
17 小时以前 1a281d8354622a3606360f9f9a7fe4bb7d6a2c3a
app/src/main/java/com/example/firstapp/database/dao/CodeDao.kt
@@ -54,7 +54,7 @@
        SELECT * FROM Code 
        WHERE oneLevel LIKE '%' || :keyword || '%' 
        AND pickup = '0'
        ORDER BY time DESC
        ORDER BY createTime DESC
    """)
    fun getByKeyword(keyword: String): List<Code>
@@ -63,6 +63,7 @@
        WHERE category = :category 
        AND code = :code 
        AND substr(createTime, 1, 10) = substr(:dateString, 1, 10)
        ORDER BY createTime DESC
        LIMIT 1
    """)
    fun queryByTypeAndCodeAndDate(category: String, code: String, dateString: String): Code?