deason vor 6 Jahren
Ursprung
Commit
4959107e45

+ 7 - 8
examcloud-core-questions-starter/src/main/java/cn/com/qmth/examcloud/core/questions/starter/IndexController.java

@@ -31,14 +31,13 @@ public class IndexController {
 
     @ResponseBody
     @RequestMapping(value = "/paper/init", method = RequestMethod.GET)
-    public String init() {
+    public String init() throws Exception {
         /* 重庆大学xml转paper对象入库 */
         CqdxService cqdxService = SpringContextHolder.getBean(CqdxService.class);
-        try {
-//            cqdxService.bulidPaper();
-        } catch (Exception e) {
-            log.error(e.getMessage(), e);
-        }
+//        cqdxService.bulidPaper();
+
+        DdExcelService ddExcelService = SpringContextHolder.getBean(DdExcelService.class);
+//        ddExcelService.exportPaperStructExcel("371");
 
 //        exportExtractExcel();
 //        exportQuestionExcel();
@@ -58,7 +57,7 @@ public class IndexController {
         try {
             service.exportExamPaperInfo(model, null, "feng", null, null);
         } catch (Exception e) {
-            e.printStackTrace();
+            log.error(e.getMessage(), e);
         }
     }
 
@@ -76,7 +75,7 @@ public class IndexController {
         try {
             ddExcelService.exportSubQues("371", 360L, codes);
         } catch (Exception e) {
-            e.printStackTrace();
+            log.error(e.getMessage(), e);
         }
     }