yy1717
2020-03-12 c125fc0a5ee47ef32db587899d972491231167ee
app/src/main/java/safeluck/drive/evaluation/DB/exam_status/ExamStatusDao.java
@@ -2,6 +2,7 @@
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
@@ -18,6 +19,8 @@
    @Query("update exam_status set enter =:enter where map_id =:mapid")
    void updateEnter(int enter,int mapid);
    @Query("update exam_status set result =:result where map_id =:mapid")
    void updateItemResult(int result,int mapid);
    @Query("update exam_status set startExam =:startexam")
    void updateStartExam(int startexam);
@@ -25,4 +28,7 @@
    LiveData<Integer> getStartExam();
    @Query("select startExam from exam_status where map_id=1")
    int getStartExamInt();
    @Query("delete from exam_status")
    void deleteAll();
}