From 4352479850d8bae404f06dcf5b4499bf60a17da1 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Sun, 1 Aug 2021 15:11:36 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E4=BC=98=E5=8C=96=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BB=BB=E5=8A=A1=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtDataSetTaskMapper.java | 4 +- .../base/mapper/ext/ExtDataSetTaskMapper.xml | 22 ++++++++-- .../base/mapper/ext/query/GridExample.java | 3 ++ .../commons/utils/ExcelReaderUtil.java | 2 +- .../commons/utils/ExcelXlsReader.java | 16 ++++--- .../commons/utils/ExcelXlsxReader.java | 28 +++++++++--- .../dataset/DataSetTableTaskController.java | 2 +- .../controller/sys/base/BaseGridRequest.java | 17 ++++++- .../datasource/dto/MysqlConfigration.java | 2 +- .../datasource/provider/JdbcProvider.java | 6 +-- .../service/dataset/DataSetTableService.java | 7 +++ .../dataset/DataSetTableTaskLogService.java | 17 ++++--- .../dataset/DataSetTableTaskService.java | 44 ++++++++++++++++--- .../service/dataset/ExtractDataService.java | 38 +++++++++------- .../resources/i18n/messages_en_US.properties | 4 +- .../resources/i18n/messages_zh_CN.properties | 8 ++-- .../resources/i18n/messages_zh_TW.properties | 4 +- .../src/views/system/task/DatasetTaskList.vue | 2 +- frontend/src/views/system/task/TaskRecord.vue | 2 +- frontend/src/views/system/task/dataset.vue | 2 +- 20 files changed, 173 insertions(+), 57 deletions(-) diff --git a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.java b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.java index 54a75269dc..b616c0cbe6 100644 --- a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.java +++ b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.java @@ -13,7 +13,9 @@ import java.util.List; */ @Mapper public interface ExtDataSetTaskMapper { - List list(GridExample example); + List listTaskLog(GridExample example); List taskList(GridExample example); + + List taskWithTriggers(GridExample example); } diff --git a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.xml b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.xml index 02682072d7..f167ab5c9a 100644 --- a/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.xml +++ b/backend/src/main/java/io/dataease/base/mapper/ext/ExtDataSetTaskMapper.xml @@ -14,9 +14,9 @@ - SELECT dataset_table_task_log.*, dataset_table_task.name, dataset_table.name as dataset_name - FROM (select GET_V_AUTH_MODEL_WITH_PRIVILEGE (#{extendCondition}, 'dataset',1) cids) t, dataset_table_task_log + FROM dataset_table_task_log LEFT JOIN dataset_table_task ON dataset_table_task_log.task_id = dataset_table_task.id LEFT JOIN dataset_table ON dataset_table_task_log.table_id = dataset_table.id @@ -32,7 +32,23 @@ + +