diff --git a/src/main/java/com/msdw/tms/api/QuestionsControllerApi.java b/src/main/java/com/msdw/tms/api/QuestionsControllerApi.java index bf4d9e7..eef6de3 100644 --- a/src/main/java/com/msdw/tms/api/QuestionsControllerApi.java +++ b/src/main/java/com/msdw/tms/api/QuestionsControllerApi.java @@ -82,4 +82,11 @@ public interface QuestionsControllerApi { */ @ApiOperation(value = "抽题测评", notes = "抽题测评") R evaluation (); + + /** + * 通过excel批量导出 + */ + @ApiOperation(value = "通过excel批量导出", notes = "通过excel批量导出") + R exportQuestion() throws IOException; + } diff --git a/src/main/java/com/msdw/tms/controller/QuestionsController.java b/src/main/java/com/msdw/tms/controller/QuestionsController.java index 036b0de..d8c056c 100644 --- a/src/main/java/com/msdw/tms/controller/QuestionsController.java +++ b/src/main/java/com/msdw/tms/controller/QuestionsController.java @@ -149,4 +149,11 @@ public class QuestionsController implements QuestionsControllerApi { return R.ok().put("data", evaluation); } + @Override + @GetMapping("/export") + public R exportQuestion() throws IOException { + // List<> list = questionsService.exportQuestion(); + return null; + } + } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8a03b75..a3214e8 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: datasource: - url: jdbc:mysql://www.liuwanr.cn:3306/msdw_tms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + url: jdbc:mysql://www.liuwanr.cn:3306/huoran?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai username: super password: huoran888 driver-class-name: com.mysql.jdbc.Driver