| | |
| | | jsonObject = new JSONObject(str); |
| | | int mapId = jsonObject.getInt("map_id"); |
| | | int enter = jsonObject.getInt("enter"); |
| | | WorkRoomDataBase.getWorkRoomDataBase(getApplicationContext()).getExamStatusDao().updateEnter(enter,mapId); |
| | | ExamStatus examStatus = new ExamStatus(); |
| | | examStatus.setEnter(enter); |
| | | examStatus.setMap_id(mapId); |
| | | examStatus.setMap_item(1); |
| | | WorkRoomDataBase.getWorkRoomDataBase(getApplicationContext()).getExamStatusDao().insert(examStatus); |
| | | return Result.success(); |
| | | } catch (JSONException e) { |
| | | e.printStackTrace(); |