|
@@ -57,9 +57,9 @@ public class ExamAdminServiceImpl implements ExamAdminService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public Result getBeforeExamRemark(String key, String token, Long examId, String type) throws Exception {
|
|
|
- //封装请求参数
|
|
|
+ @Override
|
|
|
+ public Result getBeforeExamRemark(String key, String token, Long examId, String type) throws Exception {
|
|
|
+ //封装请求参数
|
|
|
final String requestUrl = String.format("%s/api/ecs_exam_work/exam/examOrgProperty/%s/%s", propertyService.getExamAdminUrl(), examId, type);
|
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
|
if (result.isSuccess()) {
|
|
@@ -67,11 +67,11 @@ public class ExamAdminServiceImpl implements ExamAdminService {
|
|
|
result.setData(HttpUtils.filterNullAttributes(result.getData()));
|
|
|
}
|
|
|
return result;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- @Override
|
|
|
- public Result getFreezeTime(String key, String token, Long examId) throws Exception {
|
|
|
- //封装请求参数
|
|
|
+ @Override
|
|
|
+ public Result getFreezeTime(String key, String token, Long examId) throws Exception {
|
|
|
+ //封装请求参数
|
|
|
final String requestUrl = String.format("%s/api/ecs_exam_work/exam/examOrgProperty/%s/FREEZE_TIME", propertyService.getExamAdminUrl(), examId);
|
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
|
if (result.isSuccess()) {
|
|
@@ -79,11 +79,11 @@ public class ExamAdminServiceImpl implements ExamAdminService {
|
|
|
result.setData(HttpUtils.filterNullAttributes(result.getData()));
|
|
|
}
|
|
|
return result;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- @Override
|
|
|
- public Result getUpLoadType(String key, String token, Long examId) throws Exception {
|
|
|
- //封装请求参数
|
|
|
+ @Override
|
|
|
+ public Result getUpLoadType(String key, String token, Long examId) throws Exception {
|
|
|
+ //封装请求参数
|
|
|
final String requestUrl = String.format("%s/api/ecs_exam_work/exam/examOrgProperty/%s/OFFLINE_UPLOAD_FILE_TYPE", propertyService.getExamAdminUrl(), examId);
|
|
|
Result<String> result = HttpUtils.doGet(requestUrl, key, token);
|
|
|
if (result.isSuccess()) {
|
|
@@ -91,6 +91,6 @@ public class ExamAdminServiceImpl implements ExamAdminService {
|
|
|
result.setData(HttpUtils.filterNullAttributes(result.getData()));
|
|
|
}
|
|
|
return result;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
}
|