DANA: make data in history activity descending
This commit is contained in:
parent
119d2c8f0e
commit
3875957801
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import io.reactivex.Single
|
||||||
@Dao
|
@Dao
|
||||||
abstract class DanaHistoryRecordDao {
|
abstract class DanaHistoryRecordDao {
|
||||||
|
|
||||||
@Query("SELECT * from $TABLE_DANA_HISTORY WHERE timestamp >= :timestamp AND code = :type")
|
@Query("SELECT * from $TABLE_DANA_HISTORY WHERE timestamp >= :timestamp AND code = :type ORDER BY timestamp DESC")
|
||||||
abstract fun allFromByType(timestamp: Long, type: Byte): Single<List<DanaHistoryRecord>>
|
abstract fun allFromByType(timestamp: Long, type: Byte): Single<List<DanaHistoryRecord>>
|
||||||
|
|
||||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
|
|
Loading…
Reference in a new issue