|
@@ -3,7 +3,6 @@ package com.qmth.cqb;
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.Gson;
|
|
import com.qmth.cqb.paper.dao.*;
|
|
import com.qmth.cqb.paper.dao.*;
|
|
import com.qmth.cqb.paper.model.*;
|
|
import com.qmth.cqb.paper.model.*;
|
|
-import com.qmth.cqb.paper.service.ExportPaperService;
|
|
|
|
import com.qmth.cqb.paper.service.ImportPaperService;
|
|
import com.qmth.cqb.paper.service.ImportPaperService;
|
|
import com.qmth.cqb.paper.service.PaperDetailUnitService;
|
|
import com.qmth.cqb.paper.service.PaperDetailUnitService;
|
|
import com.qmth.cqb.question.dao.QuesRepo;
|
|
import com.qmth.cqb.question.dao.QuesRepo;
|
|
@@ -70,8 +69,8 @@ public class AppTest {
|
|
@Autowired
|
|
@Autowired
|
|
ImportPaperService importPaperService;
|
|
ImportPaperService importPaperService;
|
|
|
|
|
|
- @Autowired
|
|
|
|
- ExportPaperService exportPaperService;
|
|
|
|
|
|
+// @Autowired
|
|
|
|
+// ExportPaperService exportPaperService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
Gson gson;
|
|
Gson gson;
|
|
@@ -213,13 +212,13 @@ public class AppTest {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
|
- public void testExport()throws Exception{
|
|
|
|
- long startTime = System.currentTimeMillis(); //获取开始时间
|
|
|
|
- exportPaperService.exportPaper("590ae38edd8e85f0bab928c2");
|
|
|
|
- long endTime = System.currentTimeMillis(); //获取结束时间
|
|
|
|
- System.out.println("程序运行时间:" + (endTime - startTime)/1000 + "s"); //输出程序运行时间
|
|
|
|
- }
|
|
|
|
|
|
+// @Test
|
|
|
|
+// public void testExport()throws Exception{
|
|
|
|
+// long startTime = System.currentTimeMillis(); //获取开始时间
|
|
|
|
+// exportPaperService.exportPaper("590ae38edd8e85f0bab928c2");
|
|
|
|
+// long endTime = System.currentTimeMillis(); //获取结束时间
|
|
|
|
+// System.out.println("程序运行时间:" + (endTime - startTime)/1000 + "s"); //输出程序运行时间
|
|
|
|
+// }
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void testImport1(){
|
|
public void testImport1(){
|