| | |
| | | utc = utc.substring(2,utc.length()-3); |
| | | MyLog.i("评判消息解析之后的utc="+utc); |
| | | int sn = jsonObject.get("sn").getAsInt(); |
| | | if (emp_id>31|| emp_id<0){ |
| | | MyLog.i(TAG,"emp_id超出范围不能插入数据库(I类考场)"); |
| | | return; |
| | | if (ExamPlatformData.getInstance().getExamType()==2){//场地评判消息 |
| | | if (emp_id>31|| emp_id<0){ |
| | | MyLog.i(TAG,"emp_id超出范围不能插入数据库(I类考场)"); |
| | | return; |
| | | } |
| | | FailedProj failedProj = new FailedProj(Constant.SUBJECT_I, emp_id, Constant.TEST_STU_ID,utc,sn); |
| | | MyLog.i("插入fail_projects表="+failedProj.toString()); |
| | | failedProjRepository.insert(failedProj); |
| | | } |
| | | FailedProj failedProj = new FailedProj(Constant.SUBJECT_I, emp_id, Constant.TEST_STU_ID,utc,sn); |
| | | MyLog.i("插入fail_projects表="+failedProj.toString()); |
| | | failedProjRepository.insert(failedProj); |
| | | if (ExamPlatformData.getInstance().getExamType()>2){//道路 评判消息 |
| | | if (emp_id>66|| emp_id<1){ |
| | | MyLog.i(TAG,"emp_id超出范围不能插入数据库(路考类考场)"); |
| | | return; |
| | | } |
| | | FailedProj failedProj = new FailedProj(Constant.SUBJECT_III, emp_id, Constant.TEST_STU_ID,utc,sn); |
| | | MyLog.i("插入路考fail_projects表="+failedProj.toString()); |
| | | // failedProjRepository.insert(failedProj); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |