|
@@ -351,7 +351,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public boolean getShanDongExam(Long userId,String majorname,Long relExamId) {
|
|
public boolean getShanDongExam(Long userId,String majorname,Long relExamId) {
|
|
- Boolean getNew = false;
|
|
|
|
|
|
+ Boolean getNew = true;
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
User user = iUserService.getOne(new LambdaQueryWrapper<User>()
|
|
.eq(User::getUserId, userId).last("limit 1"));
|
|
.eq(User::getUserId, userId).last("limit 1"));
|
|
String idnum = user.getIdCard();
|
|
String idnum = user.getIdCard();
|
|
@@ -374,6 +374,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
if (!respone.contains("\"msg\":\"获取成功\"")) {
|
|
if (!respone.contains("\"msg\":\"获取成功\"")) {
|
|
throw new CustomException("同步请求错误" + respone);
|
|
throw new CustomException("同步请求错误" + respone);
|
|
}
|
|
}
|
|
|
|
+ System.out.println(respone);
|
|
QuestionOtherAddBo addBo = new QuestionOtherAddBo();
|
|
QuestionOtherAddBo addBo = new QuestionOtherAddBo();
|
|
addBo.setJsonStr(respone);
|
|
addBo.setJsonStr(respone);
|
|
addBo.setFromPlat(1);
|
|
addBo.setFromPlat(1);
|
|
@@ -382,7 +383,6 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
addBo.setRelExamId(relExamId);
|
|
addBo.setRelExamId(relExamId);
|
|
Long id = iQuestionOtherService.insertByAddBo(addBo);
|
|
Long id = iQuestionOtherService.insertByAddBo(addBo);
|
|
iQuestionOtherService.queryById(id);
|
|
iQuestionOtherService.queryById(id);
|
|
- // System.out.println(respone);
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new CustomException("同步请求错误" + e.getMessage());
|
|
throw new CustomException("同步请求错误" + e.getMessage());
|
|
}
|
|
}
|