左晓为主开发手持机充值管理机
zuoxiao
2024-07-29 fc1ec55e6ad56dc92737657750bcca7ed49f53eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.dayu.qiheonlinelibrary.dao;
 
 
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
 
import com.dayu.qiheonlinelibrary.dbBean.RechargeBean;
 
import java.util.List;
 
 
/**
 * Copyright (C), 2023,
 * Author: zuo
 * Date: 2023-11-06 22:32
 * Description: 充值
 */
@Dao
public interface RechargeDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(RechargeBean passWord);
 
    @Update
    void update(RechargeBean passWord);
 
    @Delete
    void delete(RechargeBean passWord);
 
    @Query("select  * from RechargeBean order by date desc")
    LiveData<List<RechargeBean>> findAll();
 
    @Query("select  * from RechargeBean where date>=:beginTime and date<=:endTime")
    LiveData<List<RechargeBean>> findByTime(long beginTime, long endTime);
 
    @Query("select  * from RechargeBean where date>=:beginTime and date<=:endTime")
    List<RechargeBean> ansyFindByTime(long beginTime, long endTime);
 
    @Query("select  * from RechargeBean order by date desc LIMIT :limit OFFSET :offset")
    List<RechargeBean> findAll(int offset,int limit);
}