| | |
| | | import androidx.work.Worker; |
| | | import androidx.work.WorkerParameters; |
| | | |
| | | import com.anyun.exam.lib.MyLog; |
| | | import com.anyun.basecommonlib.MyLog; |
| | | |
| | | import java.util.Random; |
| | | |
| | | import safeluck.drive.evaluation.DB.Constant; |
| | | import safeluck.drive.evaluation.DB.WorkRoomDataBase; |
| | | |
| | | public class ExamStatusInitWorker extends Worker { |
| | |
| | | |
| | | public ExamStatusInitWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) { |
| | | super(context, workerParams); |
| | | Log.i(TAG,"ExamStatusInitWOrker"); |
| | | examStatus = new ExamStatus(); |
| | | } |
| | | |
| | |
| | | for (int i = 0; i < 1; i++) { |
| | | examStatus.setEnter(2);//默认待考项目 |
| | | examStatus.setStartExam(0);//默认没有开始考试 |
| | | examStatus.setMap_id(1); |
| | | examStatus.setMap_id(Constant.EXAM_STATUS_MAP_ID); |
| | | |
| | | WorkRoomDataBase.getWorkRoomDataBase(getApplicationContext()).getExamStatusDao().insert(examStatus); |
| | | } |