|
@@ -1,11 +1,9 @@
|
|
|
package cn.com.qmth.examcloud.tool;
|
|
|
|
|
|
import cn.com.qmth.examcloud.tool.cache.LoginSessionManager;
|
|
|
-import cn.com.qmth.examcloud.tool.config.SpringContextHolder;
|
|
|
import cn.com.qmth.examcloud.tool.config.SysProperty;
|
|
|
import cn.com.qmth.examcloud.tool.entity.TaskEntity;
|
|
|
import cn.com.qmth.examcloud.tool.service.CommonService;
|
|
|
-import cn.com.qmth.examcloud.tool.service.batch_import_exam_student.BatchImportExamStudentTask;
|
|
|
import cn.com.qmth.examcloud.tool.service.exam_record_data_audit.ExamRecordDataAuditTask;
|
|
|
import cn.com.qmth.examcloud.tool.service.export_exam_capture.ExportExamCaptureTask;
|
|
|
import cn.com.qmth.examcloud.tool.service.export_exam_paper_struct.ExportExamPaperStructTask;
|
|
@@ -69,8 +67,13 @@ public class ToolTest {
|
|
|
|
|
|
private void testTask(User loginUser) {
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
- params.put("examId", 89);
|
|
|
- params.put("dataFilePath", DATA_DIR + "/考生导入模板-1w.xlsx");
|
|
|
+ params.put("examId", 184);
|
|
|
+ // params.put("courseCodes", "");
|
|
|
+ // params.put("questionIds", "");
|
|
|
+ // params.put("updateObjectiveAnswer", "true");
|
|
|
+ // params.put("updateObjectiveScore", "false");
|
|
|
+ // params.put("updateSubjectiveScore", "false");
|
|
|
+ // params.put("dataFilePath", DATA_DIR + "/考生导入模板-1w.xlsx");
|
|
|
// params.put("dataFilePath", DATA_DIR + "/批量创建用户模板.xlsx");
|
|
|
|
|
|
TaskEntity task = new TaskEntity();
|
|
@@ -78,15 +81,16 @@ public class ToolTest {
|
|
|
task.setUserToken(loginUser.getToken());
|
|
|
task.setParams(new JsonMapper().toJson(params));
|
|
|
|
|
|
- SpringContextHolder.getBean(BatchImportExamStudentTask.class).start(task);
|
|
|
+ // SpringContextHolder.getBean(UpdateCorrectAnswerAndReFixScoreTask.class).start(task);
|
|
|
+ // SpringContextHolder.getBean(BatchImportExamStudentTask.class).start(task);
|
|
|
// SpringContextHolder.getBean(BatchCreateUserTask.class).start(task);
|
|
|
}
|
|
|
|
|
|
private User doLogin() {
|
|
|
- // String serverUrl = "192.168.10.41";
|
|
|
+ String serverUrl = "192.168.10.41";
|
|
|
// String serverUrl = "org0.dev39.qmth.com.cn";
|
|
|
// String serverUrl = "ecs-test.ea100.com.cn";
|
|
|
- String serverUrl = "exam.exam-cloud.cn";
|
|
|
+ // String serverUrl = "exam.exam-cloud.cn";
|
|
|
|
|
|
String loginName = "admin5";
|
|
|
String password = "0";
|