app/src/main/java/com/example/firstapp/database/dao/CodeDao.kt
@@ -48,4 +48,7 @@ ORDER BY time DESC """) fun getByKeyword(keyword: String): List<Code> @Query("SELECT * FROM Code WHERE type = :content and code= :code and overtime = :dateString LIMIT 1") fun queryByTypeAndCodeAndDate(content: String, code: String, dateString: String): Code }