diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java
new file mode 100644
index 00000000..ce50103e
--- /dev/null
+++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java
@@ -0,0 +1,27 @@
+package com.anjiplus.template.gaea.business;
+
+import com.anji.plus.gaea.annotation.enabled.EnabledGaeaConfiguration;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * 业务模板
+ * @author lr
+ * @since 2021-02-03
+ */
+@EnabledGaeaConfiguration
+@SpringBootApplication(scanBasePackages = {
+ "com.anjiplus.template.gaea",
+ "com.anji.plus"
+})
+@MapperScan(basePackages = {
+ "com.anjiplus.template.gaea.business.modules.*.dao",
+ "com.anjiplus.template.gaea.business.modules.*.**.dao",
+ "com.anji.plus.gaea.*.module.*.dao"
+})
+public class ReportApplication {
+ public static void main( String[] args ) {
+ SpringApplication.run(ReportApplication.class);
+ }
+}
diff --git a/report-core/src/main/resources/bootstrap-dev.yml b/report-core/src/main/resources/bootstrap-dev.yml
new file mode 100644
index 00000000..e8c4e1d6
--- /dev/null
+++ b/report-core/src/main/resources/bootstrap-dev.yml
@@ -0,0 +1,83 @@
+spring:
+ application:
+ name: gaea-business
+ cloud:
+ nacos:
+ server-addr: 10.108.26.121:8848,10.108.26.145:8848
+ username: gaea
+ password: p@ss1234
+# config:
+# namespace: 5c6b6687-ad43-450f-88b6-e704ff78d83f
+# file-extension: yaml
+ discovery:
+ namespace: 5c6b6687-ad43-450f-88b6-e704ff78d83f
+ jackson:
+ date-format: yyyy-MM-dd HH:mm:ss
+ messages:
+ basename: i18n/messages
+ datasource:
+ url: jdbc:mysql://10.108.26.197:3306/aj_report?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
+ username: root
+ password: appuser@anji
+ redis:
+ host: 10.108.26.197
+ port: 6379
+ password: appuser@anji
+ database: 1
+generator:
+ enabled: true
+ workspace: /workspace/gaea
+ templatePath: template
+server:
+ port: 9092
+# servlet:
+# context-path: /business
+mybatis-plus:
+ configuration:
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+ call-setters-on-nulls: true
+ mapperLocations:
+ - classpath*:/mapper/**/*.xml
+ - classpath*:/modeler-mybatis-mappings/**/*.xml
+
+ gaea:
+ subscribes:
+ security:
+ enabled: true
+ push:
+ enabled: true
+ sms:
+ aliyun:
+ access-key-id:
+ secret:
+ audit-log:
+ enabled: true
+ callback-url: http://127.0.0.1:9091/log/callback
+ export:
+ enabled: true
+
+ # 邮箱发送配置
+ mail:
+ # host不配置会注入失败
+ host: smtp.163.com
+ default-encoding: utf-8
+ protocol: smtp
+ properties:
+ mail:
+ smtp:
+ connectiontimeout: 5000
+ timeout: 3000
+
+management:
+ endpoints:
+ web:
+ base-path: /
+logging:
+ level:
+ com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder: debug
+file:
+ dist-path: /app/disk/upload/
+ white-list: .png|.jpg|.gif|.icon|.pdf|.xlsx|.xls|.csv|.mp4|.avi
+ excelSuffix: .xlsx|.xls|.csv
+ downloadPath: http://10.108.26.197/business/file/download
+
diff --git a/report-core/src/main/resources/bootstrap-prod.yml b/report-core/src/main/resources/bootstrap-prod.yml
new file mode 100644
index 00000000..fc5119d8
--- /dev/null
+++ b/report-core/src/main/resources/bootstrap-prod.yml
@@ -0,0 +1,17 @@
+spring:
+ application:
+ name: gaea-business
+ cloud:
+ nacos:
+ server-addr: 10.108.142.118:8848
+ username: gaea
+ password: p@ss1234
+ config:
+ namespace: fe5a998f-1149-4f55-aa83-e7552279058c
+ file-extension: yaml
+ discovery:
+ namespace: fe5a998f-1149-4f55-aa83-e7552279058c
+generator:
+ enabled: false
+ workspace: /workspace/gaea
+ templatePath: template
\ No newline at end of file
diff --git a/report-core/src/main/resources/bootstrap.yml b/report-core/src/main/resources/bootstrap.yml
new file mode 100644
index 00000000..0c268749
--- /dev/null
+++ b/report-core/src/main/resources/bootstrap.yml
@@ -0,0 +1,9 @@
+spring:
+ profiles:
+ active: @spring.profiles.active@
+
+logging:
+ config: classpath:logback.xml
+generator:
+ tableExclude:
+ mysql: "AND table_name not like 'gaea_%' AND table_name not like 'ACT_%'"
\ No newline at end of file
diff --git a/report-core/src/main/resources/lib/ImpalaJDBC41.jar b/report-core/src/main/resources/lib/ImpalaJDBC41.jar
new file mode 100644
index 00000000..058a54d9
Binary files /dev/null and b/report-core/src/main/resources/lib/ImpalaJDBC41.jar differ
diff --git a/report-core/src/main/resources/logback.xml b/report-core/src/main/resources/logback.xml
new file mode 100644
index 00000000..b6752c24
--- /dev/null
+++ b/report-core/src/main/resources/logback.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+ %d{MM-dd HH:mm:ss.SSS} | %thread |-%-5level %logger{36}:%L - %msg%n
+
+
+ INFO
+
+
+
+
+
+ ${LOG_HOME}/${LOG_NAME}.log
+
+ ${LOG_HOME}/%d{yyyy-MM-dd}/${LOG_NAME}-%i.log
+ 50MB
+ 30
+
+
+ %d{MM-dd HH:mm:ss.SSS} |-%-5level %logger{36}:%L - %m%n
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/DataSetMapper.xml b/report-core/src/main/resources/mapper/DataSetMapper.xml
new file mode 100644
index 00000000..88731dbc
--- /dev/null
+++ b/report-core/src/main/resources/mapper/DataSetMapper.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,set_code,set_name,set_desc,source_code,dyn_sentence,case_result,enable_flag,delete_flag,create_by,create_time,update_by,update_time,version
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/DataSetParamMapper.xml b/report-core/src/main/resources/mapper/DataSetParamMapper.xml
new file mode 100644
index 00000000..428988c2
--- /dev/null
+++ b/report-core/src/main/resources/mapper/DataSetParamMapper.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,set_code,param_name,param_desc,param_type,sample_item,required_flag,validation_rules,order_num,enable_flag,delete_flag,create_by,create_time,update_by,update_time,version
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/DataSetTransformMapper.xml b/report-core/src/main/resources/mapper/DataSetTransformMapper.xml
new file mode 100644
index 00000000..dca23fa3
--- /dev/null
+++ b/report-core/src/main/resources/mapper/DataSetTransformMapper.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,set_code,transform_type,transform_script,order_num,enable_flag,delete_flag,create_by,create_time,update_by,update_time,version
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/DataSourceMapper.xml b/report-core/src/main/resources/mapper/DataSourceMapper.xml
new file mode 100644
index 00000000..af55c19e
--- /dev/null
+++ b/report-core/src/main/resources/mapper/DataSourceMapper.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,source_code,source_name,source_desc,source_type,source_config,enable_flag,delete_flag,create_by,create_time,update_by,update_time,version
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/GaeaExportMapper.xml b/report-core/src/main/resources/mapper/GaeaExportMapper.xml
new file mode 100644
index 00000000..f9253ece
--- /dev/null
+++ b/report-core/src/main/resources/mapper/GaeaExportMapper.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, file_id, file_title, result_start_time, result_end_time, result_size, file_create_time, file_finish_time,
+ file_status, create_by, update_by, create_time, update_time, version, remark
+
+
+
+
+
diff --git a/report-core/src/main/resources/mapper/GaeaUiI18nMapper.xml b/report-core/src/main/resources/mapper/GaeaUiI18nMapper.xml
new file mode 100644
index 00000000..db8442aa
--- /dev/null
+++ b/report-core/src/main/resources/mapper/GaeaUiI18nMapper.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,locale,cata_type,system,code,name,remark,enabled,create_by,create_time,update_by,update_time,version
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/ReportDashboardMapper.xml b/report-core/src/main/resources/mapper/ReportDashboardMapper.xml
new file mode 100644
index 00000000..ab9aa8bf
--- /dev/null
+++ b/report-core/src/main/resources/mapper/ReportDashboardMapper.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,report_code,title,width,height,background_color,background_image,preset_line,refresh_seconds,enable_flag,delete_flag,sort,create_by,create_time,update_by,update_time
+
+
+
+
+
\ No newline at end of file
diff --git a/report-core/src/main/resources/mapper/ReportDashboardWidgetMapper.xml b/report-core/src/main/resources/mapper/ReportDashboardWidgetMapper.xml
new file mode 100644
index 00000000..476e6388
--- /dev/null
+++ b/report-core/src/main/resources/mapper/ReportDashboardWidgetMapper.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,report_code,`type`,setup,`data`,`position`,collapse,enable_flag,delete_flag,sort,create_by,create_time,update_by,update_time
+
+
+
+
+
diff --git a/report-core/src/main/resources/mapper/ReportExcelMapper.xml b/report-core/src/main/resources/mapper/ReportExcelMapper.xml
new file mode 100644
index 00000000..216277cc
--- /dev/null
+++ b/report-core/src/main/resources/mapper/ReportExcelMapper.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/report-core/src/main/resources/mapper/ReportMapper.xml b/report-core/src/main/resources/mapper/ReportMapper.xml
new file mode 100644
index 00000000..1a506d65
--- /dev/null
+++ b/report-core/src/main/resources/mapper/ReportMapper.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id,report_name,report_code,json_str,enable_flag,delete_flag,create_by,create_time,update_by,update_time,version
+
+
+
+
+
diff --git a/report-core/src/test/resources/application.properties b/report-core/src/test/resources/application.properties
new file mode 100644
index 00000000..e69de29b