左晓为主开发手持机充值管理机
zuoxiao
2023-11-23 bbce34a82d99e9b84a352209532751e8ac8975a4
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
package com.dayu.recharge.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.recharge.dbBean.RechargeBean;
import com.dayu.recharge.dbBean.RechargeBean;
import com.dayu.recharge.dbBean.UserCardBean;
 
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")
    List<RechargeBean> findByTime(long beginTime, long endTime);
}