From 0716b7f8d6ca18a70f0ddd189f18129e985ddda7 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Mon, 24 Aug 2020 09:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=90=8D=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/msdw/tms/api/QuestionsControllerApi.java | 7 +++++++ .../java/com/msdw/tms/controller/QuestionsController.java | 7 +++++++ src/main/resources/application.yml | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) 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