|
@@ -115,9 +115,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordPaperStructList(String key, String token, String examRecordId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordPaperStructList(String key, String token, String examRecordId,String fromCache) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
|
|
+ String requestUrl=null;
|
|
|
|
+ if("1".equals(fromCache)) {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
+ }else {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
|
|
|
|
+ }
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -171,9 +176,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordTotalInfo(String key, String token, String examRecordId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordTotalInfo(String key, String token, String examRecordId,String fromCache) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/practice/getPracticeDetailInfo?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
|
|
+ String requestUrl=null;
|
|
|
|
+ if("1".equals(fromCache)) {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/practice/getPracticeDetailInfo?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
+ }else {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/practice/getPracticeDetailInfo?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordId);
|
|
|
|
+ }
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
return HttpUtils.doGet(requestUrl, key, token);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -203,9 +213,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result findExamRecordDataEntity(String key, String token, Long examRecordDataId) throws Exception {
|
|
|
|
|
|
+ public Result findExamRecordDataEntity(String key, String token, Long examRecordDataId,String fromCache) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ String requestUrl=null;
|
|
|
|
+ if("1".equals(fromCache)) {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/exam/record/data/findExamRecordDataEntity?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
+ }else {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/exam/record/data/findExamRecordDataEntity?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
+ }
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
//过滤掉为空的属性
|
|
//过滤掉为空的属性
|
|
@@ -215,9 +230,14 @@ public class CoreOeServiceImpl implements CoreOeService {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Result getExamRecordQuestions(String key, String token, Long examRecordDataId) throws Exception {
|
|
|
|
|
|
+ public Result getExamRecordQuestions(String key, String token, Long examRecordDataId,String fromCache) throws Exception {
|
|
//封装请求参数
|
|
//封装请求参数
|
|
- final String requestUrl = String.format("%s/api/ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
|
|
+ String requestUrl=null;
|
|
|
|
+ if("1".equals(fromCache)) {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
+ }else {
|
|
|
|
+ requestUrl = String.format("%s/api/ecs_oe_admin/examRecordQuestions/getExamRecordQuestions?examRecordDataId=%s", sysProperty.getCoreOeAdminUrl(), examRecordDataId);
|
|
|
|
+ }
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
//过滤掉为空的属性
|
|
//过滤掉为空的属性
|