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