fctom1215
2020-03-10 29cd07271e0e37ce1e4b5c0d7c56f98da208190f
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
package safeluck.drive.evaluation.DB.rtktb;
 
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
 
@Dao
public interface RTKConfigDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(RTKConfig rtkConfig);
 
 
    @Query("SELECT * from rtkconfig_table")
    LiveData<RTKConfig> getRTKConfig();
 
    @Update
    void update(RTKConfig rtkConfig);
    @Query("Update rtkconfig_table SET sn=:sn ,imei=:imei ,phone=:phone where _id =0")
    void update(String sn,String imei,String phone);
 
 
}