yanzili 3 years ago
commit f626d2ae60

1
.gitignore vendored

@ -5,3 +5,4 @@ target
**/*.log **/*.log
dist dist
logs logs
cache

@ -0,0 +1,13 @@
----------------------------------------------------------------
Thu Jun 24 13:44:40 CST 2021:
Booting Derby version The Apache Software Foundation - Apache Derby - 10.14.2.0 - (1828579): instance a816c00e-017a-3c8c-7997-00000fdd7788
on database directory memory:D:\anji-code\gitee\aj-report\55b30257-1477-453c-b5b1-a9bbd7a931a7 with class loader sun.misc.Launcher$AppClassLoader@18b4aac2
Loaded from file:/C:/Users/raodeming/.m2/repository/org/apache/derby/derby/10.14.2.0/derby-10.14.2.0.jar
java.vendor=Oracle Corporation
java.runtime.version=1.8.0_191-b12
user.dir=D:\anji-code\gitee\aj-report
os.name=Windows 10
os.arch=amd64
os.version=10.0
derby.system.home=null
Database Class Loader started - derby.database.classpath=''

@ -1,14 +1,63 @@
module.exports = { module.exports = {
base: '/doc/', base: '/doc/',
title: '大屏设计', title: '大屏设计',
description: '使用拖拽快速生成动态大屏报表', description: '使用拖拽快速生成动态大屏报表',
dest: 'dist', dest: 'dist',
lastUpdated: 'Last Updated', lastUpdated: 'Last Updated',
theme: '', theme: '',
themeConfig: { themeConfig: {
logo: '/logo.png', logo: '/logo.png',
smoothScroll: true, smoothScroll: true,
sidebarDepth: 2, sidebarDepth: 2,
nav: [
} {text: '首页', link: '/'},
{text: '指南', link: '/guide/'},
{text: '操作手册', link: '/operation/'},
{text: 'GitHub', link: 'https://github.com/anji-plus/report'},
{text: 'Gitee', link: 'https://gitee.com/anji-plus/report'},
],
sidebar: {
'/guide/': [
{
title: '文档',
collapsable: false,
children: [
{title: '介绍', path: '/guide/'},
{title: '快速入门', path: '/guide/quickly'},
{title: '项目介绍', path: '/guide/productintro'},
{title: '系统运行', path: '/guide/deploy'}
]
},
{
title: '其他',
collapsable: false,
children: [
{title: '常见问题', path: '/guide/question'}
]
}],
'/operation/': [
{
title: '操作手册',
collapsable: false,
children: [
{title: '数据源', path: '/operation/datasource'},
{title: '数据集', path: '/operation/dataset'},
{title: '大屏设计', path: '/operation/dashboard'},
{title: '国际化', path: '/operation/i18n'},
{title: '字典', path: '/operation/dict'},
]
}
]
}
},
plugins: [
['@vuepress/back-to-top', true],
],
configureWebpack: {
resolve: {
alias: {
'@': '/.vuepress/public'
}
}
}
} }

@ -1 +0,0 @@
# 开发手册

@ -1 +1,69 @@
# 项目介绍 # 项目介绍
# 项目介绍
在线拖拽大屏设计,后续会持续更新新的功能。
## 文件结构
### 系统目录
-
```
├── doc 文档源码
│ ├── docs
│ ├── package.json
│ └── README.md
├── pom.xml 父pomjar版本管理
├── report-core java源码
│ ├── pom.xml gaea父pomjar版本管理
│ └── README.md
├── report-ui 前端vue源码
├── LICENSE
├── README.md
```
### 前端
```
├── build # 构建相关
├── mock # 项目mock 模拟数据
├── public # 静态资源
│ │── favicon.ico # favicon图标
│ └── index.html # html模板
├── src # 源代码
│ ├── api # 所有请求
│ ├── assets # 主题 字体等静态资源
│ ├── components # 全局公用组件
│ ├── directive # 全局指令
│ ├── icons # 项目所有 svg icons
│ ├── lang # 国际化 language
│ ├── layout # 全局 layout
│ ├── router # 路由
│ ├── store # 全局 store管理
│ ├── styles # 全局样式
│ ├── utils # 全局公用方法
│ ├── views # views 所有页面
│ ├── App.vue # 入口页面
│ ├── main.js # 入口文件 加载组件 初始化等
│ └── permission.js # 权限管理
├── .env.xxx # 环境变量配置
├── .eslintrc.js # eslint 配置项
├── .babelrc # babel-loader 配置
├── .travis.yml # 自动化CI配置
├── vue.config.js # vue-cli 配置
├── postcss.config.js # postcss 配置
└── package.json # package.json
```
## 核心技术
### 后端
- [Spring Boot](https://spring.io/projects/spring-boot/): Spring Boot是一款开箱即用框架让我们的Spring应用变的更轻量化、更快的入门。 在主程序执行main函数就可以运行。你也可以打包你的应用为jar并通过使用java -jar来运行你的Web应用
- [Mybatis-plus](https://mp.baomidou.com/): MyBatis-plus简称 MP是一个 MyBatis (opens new window) 的增强工具。
- [flyway](https://flywaydb.org/): 主要用于在你的应用版本不断升级的同时,升级你的数据库结构和里面的数据
### 前端
- [npm](https://www.npmjs.com/)node.js的包管理工具用于统一管理我们前端项目中需要用到的包、插件、工具、命令等便于开发和维护。
- [webpack](https://webpack.docschina.org/):用于现代 JavaScript 应用程序的_静态模块打包工具
- [ES6](https://es6.ruanyifeng.com/)Javascript的新版本ECMAScript6的简称。利用ES6我们可以简化我们的JS代码同时利用其提供的强大功能来快速实现JS逻辑。
- [vue-cli](https://cli.vuejs.org/)Vue的脚手架工具用于自动生成Vue项目的目录及文件。
- [vue-router](https://router.vuejs.org/) Vue提供的前端路由工具利用其我们实现页面的路由控制局部刷新及按需加载构建单页应用实现前后端分离。
- [vuex](https://vuex.vuejs.org/)Vue提供的状态管理工具用于统一管理我们项目中各种数据的交互和重用存储我们需要用到数据对象。
- [element-ui](https://element.eleme.cn/#/zh-CN)基于MVVM框架Vue开源出来的一套前端ui组件。
- [vue-element-admin](https://panjiachen.gitee.io/vue-element-admin-site/):后台前端解决方案,它基于 vue 和 element-ui实现

@ -5,8 +5,8 @@
- 在线提问: <https://gitee.com/anji-plus/report/issues> - 在线提问: <https://gitee.com/anji-plus/report/issues>
- 在线文档: - 在线文档:
大屏设计Report是一个JavaEE微服务架构平台采用经典组合SpringBootSpringCloudVueElementUI。目前提供两种架构单体架构和微服务架构 大屏设计Report是一个可视化拖拽编辑的,直观,酷炫,具有科技感的图表工具项目
内置的基础功能包括数据源,数据集,报表管理 内置的基础功能包括数据源,数据集,国际化,字典管理,报表管理
## 技术选型 ## 技术选型
@ -17,8 +17,6 @@
**2.主框架** **2.主框架**
- Spring Boot 2.3.x - Spring Boot 2.3.x
- Spring Cloud Hoxton.SR9
- Spring Security 5.3.x
**3.持久层** **3.持久层**
- Apache MyBatis 3.5.x - Apache MyBatis 3.5.x

@ -0,0 +1,25 @@
# 介绍
---
**大屏设计**
大屏设计Report是一个JavaEE微服务架构平台采用经典组合SpringBootSpringCloudVueElementUI。目前提供两种架构单体架构和微服务架构。
内置的基础功能包括数据源,数据集,报表管理
**功能架构**
- 前端
- 后端
**在线体验**
- 访问地址
- 默认账号密码
**联系我们**

@ -0,0 +1,32 @@
# 快速了解
---
## 项目简介
- 项目源代码地址: <https://gitee.com/anji-plus/report>
- 在线提问: <https://gitee.com/anji-plus/report/issues>
- 在线文档:
大屏设计Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具项目。
内置的基础功能包括数据源,数据集,国际化,字典管理,报表管理
## 技术选型
**1.环境**
- JavaEE 8
- Apache Maven 3
**2.主框架**
- Spring Boot 2.3.x
**3.持久层**
- Apache MyBatis 3.5.x
**4.视图层**
- Vue 2.6.10+
- ElementUI 2.13.0+
## 系统特性
1. 最新最稳定的技术栈;
2. 支持多数据源配置
3. 丰富的大屏组件。拖拽配置实现动态大屏

@ -0,0 +1,32 @@
# 快速了解
---
## 项目简介
- 项目源代码地址: <https://gitee.com/anji-plus/report>
- 在线提问: <https://gitee.com/anji-plus/report/issues>
- 在线文档:
大屏设计Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具项目。
内置的基础功能包括数据源,数据集,国际化,字典管理,报表管理
## 技术选型
**1.环境**
- JavaEE 8
- Apache Maven 3
**2.主框架**
- Spring Boot 2.3.x
**3.持久层**
- Apache MyBatis 3.5.x
**4.视图层**
- Vue 2.6.10+
- ElementUI 2.13.0+
## 系统特性
1. 最新最稳定的技术栈;
2. 支持多数据源配置
3. 丰富的大屏组件。拖拽配置实现动态大屏

@ -0,0 +1,3 @@
# 数据源
## 标题一

@ -0,0 +1,32 @@
# 快速了解
---
## 项目简介
- 项目源代码地址: <https://gitee.com/anji-plus/report>
- 在线提问: <https://gitee.com/anji-plus/report/issues>
- 在线文档:
大屏设计Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具项目。
内置的基础功能包括数据源,数据集,国际化,字典管理,报表管理
## 技术选型
**1.环境**
- JavaEE 8
- Apache Maven 3
**2.主框架**
- Spring Boot 2.3.x
**3.持久层**
- Apache MyBatis 3.5.x
**4.视图层**
- Vue 2.6.10+
- ElementUI 2.13.0+
## 系统特性
1. 最新最稳定的技术栈;
2. 支持多数据源配置
3. 丰富的大屏组件。拖拽配置实现动态大屏

@ -0,0 +1,32 @@
# 快速了解
---
## 项目简介
- 项目源代码地址: <https://gitee.com/anji-plus/report>
- 在线提问: <https://gitee.com/anji-plus/report/issues>
- 在线文档:
大屏设计Report是一个可视化拖拽编辑的直观酷炫具有科技感的图表工具项目。
内置的基础功能包括数据源,数据集,国际化,字典管理,报表管理
## 技术选型
**1.环境**
- JavaEE 8
- Apache Maven 3
**2.主框架**
- Spring Boot 2.3.x
**3.持久层**
- Apache MyBatis 3.5.x
**4.视图层**
- Vue 2.6.10+
- ElementUI 2.13.0+
## 系统特性
1. 最新最稳定的技术栈;
2. 支持多数据源配置
3. 丰富的大屏组件。拖拽配置实现动态大屏

@ -1 +0,0 @@
## 文档

@ -21,7 +21,7 @@
</modules> </modules>
<properties> <properties>
<gaea.version>1.0.0-SNAPSHOT</gaea.version> <gaea.version>2.0.0-SNAPSHOT</gaea.version>
<gaea.security.version>1.0.0-SNAPSHOT</gaea.security.version> <gaea.security.version>1.0.0-SNAPSHOT</gaea.security.version>
<gaea.export.version>1.0.0-SNAPSHOT</gaea.export.version> <gaea.export.version>1.0.0-SNAPSHOT</gaea.export.version>
<gaea.generator.version>1.0.0-SNAPSHOT</gaea.generator.version> <gaea.generator.version>1.0.0-SNAPSHOT</gaea.generator.version>

@ -14,25 +14,47 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.anjiplus.template.gaea</groupId> <groupId>org.projectlombok</groupId>
<artifactId>template-gaea-common</artifactId> <artifactId>lombok</artifactId>
<!-- <exclusions>--> </dependency>
<!-- <exclusion>--> <dependency>
<!-- <groupId>com.alibaba.cloud</groupId>--> <groupId>com.anji-plus</groupId>
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>--> <artifactId>spring-boot-gaea</artifactId>
<!-- </exclusion>--> <exclusions>
<!-- <exclusion>--> <exclusion>
<!-- <groupId>com.alibaba.cloud</groupId>--> <groupId>org.springframework.boot</groupId>
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>--> <artifactId>spring-boot-starter-data-redis</artifactId>
<!-- </exclusion>--> </exclusion>
<!-- </exclusions>--> </exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-context</artifactId>
</dependency> </dependency>
<!--模板引擎-->
<dependency> <dependency>
<groupId>com.anjiplus.template.gaea</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>template-gaea-generator</artifactId> <artifactId>spring-boot-starter-freemarker</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>com.anjiplus.template.gaea</groupId>-->
<!-- <artifactId>template-gaea-generator</artifactId>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
@ -49,15 +71,17 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>com.alibaba.cloud</groupId>--> <groupId>org.springframework.boot</groupId>
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>--> <artifactId>spring-boot-starter-cache</artifactId>
<!-- </dependency>--> </dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.10.6</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.alibaba.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>com.anji-plus</groupId> <groupId>com.anji-plus</groupId>
<artifactId>spring-boot-starter-gaea-export</artifactId> <artifactId>spring-boot-starter-gaea-export</artifactId>

@ -4,6 +4,7 @@ import com.anji.plus.gaea.annotation.enabled.EnabledGaeaConfiguration;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScans;
/** /**
* *
@ -11,7 +12,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @since 2021-02-03 * @since 2021-02-03
*/ */
@EnabledGaeaConfiguration @EnabledGaeaConfiguration
@SpringBootApplication @SpringBootApplication(scanBasePackages = {
"com.anjiplus.template.gaea",
"com.anji.plus"
})
@MapperScan(basePackages = { @MapperScan(basePackages = {
"com.anjiplus.template.gaea.business.modules.*.dao", "com.anjiplus.template.gaea.business.modules.*.dao",
"com.anjiplus.template.gaea.business.modules.*.**.dao", "com.anjiplus.template.gaea.business.modules.*.**.dao",

@ -0,0 +1,150 @@
package com.anjiplus.template.gaea.business.cache;
import com.anji.plus.gaea.cache.CacheHelper;
import com.google.common.collect.Maps;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class ReportCacheHelper implements CacheHelper, ApplicationContextAware {
@Autowired
private Cache cache;
@Override
public String stringGet(String key) {
Cache.ValueWrapper valueWrapper = cache.get(key);
if (valueWrapper != null) {
return (String) valueWrapper.get();
}
return CacheHelper.super.stringGet(key);
}
@Override
public Boolean setIfAbsent(String key, String value) {
cache.putIfAbsent(key, value);
return true;
}
@Override
public boolean exist(String key) {
String cacheHoldTime = stringGet(key + "_HoldTime");
if (cacheHoldTime != null && Long.parseLong(cacheHoldTime) > 0) {
if (Long.parseLong(cacheHoldTime) < System.currentTimeMillis()) {
delete(key + "_HoldTime");
delete(key);
return false;
}
}
return cache.get(key) != null;
}
@Override
public void stringSet(String key, String value) {
cache.put(key, value);
}
@Override
public String regKey(String key) {
return CacheHelper.super.regKey(key);
}
@Override
public void stringSetExpire(String key, String value, long seconds) {
stringSet(key, value);
if (seconds > 0) {
//缓存失效时间
stringSet(key + "_HoldTime", String.valueOf(System.currentTimeMillis() + seconds * 1000));
}
}
@Override
public Map<String, String> hashGet(String key) {
Cache.ValueWrapper t = cache.get(key);
if (t != null) {
return (Map<String, String>) t.get();
}
return Maps.newHashMap();
}
@Override
public String hashGetString(String key, String hashKey) {
Map<String, String> stringStringMap = hashGet(key);
return stringStringMap.get(hashKey);
}
@Override
public void hashDel(String key, String hashKey) {
Map<String, String> stringStringMap = hashGet(key);
stringStringMap.remove(hashKey);
}
@Override
public void hashBatchDel(String key, Set<String> hashKeys) {
Map<String, String> stringStringMap = hashGet(key);
hashKeys.forEach(stringStringMap::remove);
}
@Override
public boolean hashExist(String key, String hashKey) {
if (exist(key)) {
Map<String, String> map = hashGet(key);
return map.containsKey(hashKey);
}
return false;
}
@Override
public boolean hashAnyExist(String key, String[] hashKeys) {
return CacheHelper.super.hashAnyExist(key, hashKeys);
}
@Override
public void hashSet(String key, String hashKey, String hashValue) {
Map<String, String> map;
if (exist(key)) {
map = hashGet(key);
} else {
map = new HashMap<>();
}
map.put(hashKey, hashValue);
hashSet(key, map);
}
@Override
public void hashSet(String key, Map<String, String> hash) {
cache.put(key, hash);
}
@Override
public boolean delete(String key) {
if (exist(key)) {
cache.evict(key);
}
return true;
}
@Override
public boolean delete(List<String> keys) {
keys.forEach(this::delete);
return true;
}
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
/*基于内存的本地缓存*/
cache = (Cache) applicationContext.getBean("ehCacheCache");
}
}

@ -6,6 +6,15 @@ package com.anjiplus.template.gaea.business.code;
* @since 2021-02-22 * @since 2021-02-22
*/ */
public interface ResponseCode { public interface ResponseCode {
/**
*
*/
String LOGIN_ERROR = "login.error";
/**
* token
*/
String USER_TOKEN_EXPIRED = "User.token.expired";
/** /**
* *
@ -98,4 +107,5 @@ public interface ResponseCode {
String SET_CODE_ISEXIST = "4008"; String SET_CODE_ISEXIST = "4008";
String SOURCE_CODE_ISEXIST = "4009"; String SOURCE_CODE_ISEXIST = "4009";
String CLASS_NOT_FOUND = "4010"; String CLASS_NOT_FOUND = "4010";
} }

@ -1,8 +1,11 @@
package com.anjiplus.template.gaea.business.config; package com.anjiplus.template.gaea.business.config;
import com.anji.plus.gaea.cache.CacheHelper;
import com.anjiplus.template.gaea.business.cache.ReportCacheHelper;
import com.anjiplus.template.gaea.business.runner.ApplicationInitRunner; import com.anjiplus.template.gaea.business.runner.ApplicationInitRunner;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cache.ehcache.EhCacheCache;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -26,4 +29,23 @@ public class BusinessAutoConfiguration {
public ApplicationInitRunner applicationInitRunner() { public ApplicationInitRunner applicationInitRunner() {
return new ApplicationInitRunner(); return new ApplicationInitRunner();
} }
@Bean
public CacheHelper gaeaCacheHelper(){
return new ReportCacheHelper();
}
@Bean
public EhCacheCache ehCacheCache() {
return (EhCacheCache) ehCacheCacheManager().getCache("reportCache");
}
/**
* ehCacheCacheManager
*/
@Bean
public EhCacheCacheManager ehCacheCacheManager() {
return new EhCacheCacheManager();
}
} }

@ -0,0 +1,75 @@
package com.anjiplus.template.gaea.business.filter;
import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.cache.CacheHelper;
import com.anji.plus.gaea.utils.JwtBean;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
*
* Created by raodeming on 2021/6/24.
*/
@Component
public class TokenFilter implements Filter {
@Autowired
private CacheHelper cacheHelper;
@Autowired
private JwtBean jwtBean;
@Override
public void init(FilterConfig filterConfig) throws ServletException {
Filter.super.init(filterConfig);
}
@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpServletResponse response = (HttpServletResponse) servletResponse;
String uri = request.getRequestURI();
if (!uri.startsWith("/login")) {
//获取token
String authorization = request.getHeader("Authorization");
if (StringUtils.isBlank(authorization)) {
error(response);
return;
}
String username = jwtBean.getUsername(authorization);
// String uuid = jwtBean.getUUID(authorization);
if (!cacheHelper.exist(username)) {
error(response);
return;
}
//延长有效期
cacheHelper.stringSetExpire(username, authorization, 3600);
}
//执行
filterChain.doFilter(request, response);
}
@Override
public void destroy() {
Filter.super.destroy();
}
private void error(HttpServletResponse response) throws IOException {
ResponseBean responseBean = ResponseBean.builder().code("500").message("The Token has expired").build();
response.getWriter().print(JSONObject.toJSONString(responseBean));
response.getOutputStream().flush();
}
}

@ -1,12 +1,12 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.controller; package com.anjiplus.template.gaea.business.modules.dashboard.controller;
import com.anji.plus.gaea.annotation.Permission; import com.anji.plus.gaea.annotation.Permission;
import com.anji.plus.gaea.annotation.log.GaeaAuditLog; import com.anji.plus.gaea.annotation.log.GaeaAuditLog;
import com.anji.plus.gaea.bean.ResponseBean; import com.anji.plus.gaea.bean.ResponseBean;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.service.ReportDashboardService;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ReportDashboardObjectDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ReportDashboardService; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ReportDashboardObjectDto;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto; package com.anjiplus.template.gaea.business.modules.dashboard.controller.dto;
import lombok.Data; import lombok.Data;

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto; package com.anjiplus.template.gaea.business.modules.dashboard.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto.ReportDashboardWidgetDto; import com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto.ReportDashboardWidgetDto;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto; package com.anjiplus.template.gaea.business.modules.dashboard.controller.dto;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto.ReportDashboardWidgetDto; import com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto.ReportDashboardWidgetDto;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dashboard.controller.param; package com.anjiplus.template.gaea.business.modules.dashboard.controller.param;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.dao; package com.anjiplus.template.gaea.business.modules.dashboard.dao;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dashboard.dao.entity.ReportDashboard; import com.anjiplus.template.gaea.business.modules.dashboard.dao.entity.ReportDashboard;
/** /**
* ReportDashboard Mapper * ReportDashboard Mapper

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.dao.entity; package com.anjiplus.template.gaea.business.modules.dashboard.dao.entity;
import com.anji.plus.gaea.annotation.Unique; import com.anji.plus.gaea.annotation.Unique;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service; package com.anjiplus.template.gaea.business.modules.dashboard.service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import java.util.List; import java.util.List;

@ -1,11 +1,11 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service; package com.anjiplus.template.gaea.business.modules.dashboard.service;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ReportDashboardObjectDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ReportDashboardObjectDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.param.ReportDashboardParam; import com.anjiplus.template.gaea.business.modules.dashboard.controller.param.ReportDashboardParam;
import com.anjiplus.template.gaea.business.modules.data.dashboard.dao.entity.ReportDashboard; import com.anjiplus.template.gaea.business.modules.dashboard.dao.entity.ReportDashboard;
/** /**
* @desc ReportDashboard * @desc ReportDashboard

@ -1,12 +1,10 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service.impl; package com.anjiplus.template.gaea.business.modules.dashboard.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ChartStrategy; import com.anjiplus.template.gaea.business.modules.dashboard.service.ChartStrategy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**

@ -1,14 +1,11 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service.impl; package com.anjiplus.template.gaea.business.modules.dashboard.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ChartStrategy; import com.anjiplus.template.gaea.business.modules.dashboard.service.ChartStrategy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* *

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service.impl; package com.anjiplus.template.gaea.business.modules.dashboard.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ChartStrategy; import com.anjiplus.template.gaea.business.modules.dashboard.service.ChartStrategy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service.impl; package com.anjiplus.template.gaea.business.modules.dashboard.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ChartStrategy; import com.anjiplus.template.gaea.business.modules.dashboard.service.ChartStrategy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List; import java.util.List;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.service.impl; package com.anjiplus.template.gaea.business.modules.dashboard.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
@ -7,21 +7,21 @@ import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anji.plus.gaea.utils.GaeaAssert; import com.anji.plus.gaea.utils.GaeaAssert;
import com.anji.plus.gaea.utils.GaeaBeanUtils; import com.anji.plus.gaea.utils.GaeaBeanUtils;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ChartDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ChartDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ReportDashboardDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ReportDashboardDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.controller.dto.ReportDashboardObjectDto; import com.anjiplus.template.gaea.business.modules.dashboard.controller.dto.ReportDashboardObjectDto;
import com.anjiplus.template.gaea.business.modules.data.dashboard.dao.ReportDashboardMapper; import com.anjiplus.template.gaea.business.modules.dashboard.dao.ReportDashboardMapper;
import com.anjiplus.template.gaea.business.modules.data.dashboard.dao.entity.ReportDashboard; import com.anjiplus.template.gaea.business.modules.dashboard.service.ChartStrategy;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ChartStrategy; import com.anjiplus.template.gaea.business.modules.dashboard.service.ReportDashboardService;
import com.anjiplus.template.gaea.business.modules.data.dashboard.service.ReportDashboardService; import com.anjiplus.template.gaea.business.modules.dashboard.util.DateUtil;
import com.anjiplus.template.gaea.business.modules.data.dashboard.util.DateUtil; import com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto.ReportDashboardWidgetDto;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto.ReportDashboardWidgetDto; import com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto.ReportDashboardWidgetValueDto;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto.ReportDashboardWidgetValueDto; import com.anjiplus.template.gaea.business.modules.dashboard.dao.entity.ReportDashboard;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.entity.ReportDashboardWidget; import com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.entity.ReportDashboardWidget;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.service.ReportDashboardWidgetService; import com.anjiplus.template.gaea.business.modules.dashboardwidget.service.ReportDashboardWidgetService;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.OriginalDataDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.OriginalDataDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.service.DataSetService; import com.anjiplus.template.gaea.business.modules.dataSet.service.DataSetService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dashboard.util; package com.anjiplus.template.gaea.business.modules.dashboard.util;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto; package com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.dto; package com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.param; package com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.param;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao; package com.anjiplus.template.gaea.business.modules.dashboardwidget.dao;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.entity.ReportDashboardWidget; import com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.entity.ReportDashboardWidget;
/** /**
* ReportDashboardWidget Mapper * ReportDashboardWidget Mapper

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.entity; package com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.entity;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.service; package com.anjiplus.template.gaea.business.modules.dashboardwidget.service;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.entity.ReportDashboardWidget; import com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.param.ReportDashboardWidgetParam;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.controller.param.ReportDashboardWidgetParam; import com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.entity.ReportDashboardWidget;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
/** /**

@ -1,14 +1,14 @@
package com.anjiplus.template.gaea.business.modules.data.dashboardwidget.service.impl; package com.anjiplus.template.gaea.business.modules.dashboardwidget.service.impl;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.entity.ReportDashboardWidget; import com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.entity.ReportDashboardWidget;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.service.ReportDashboardWidgetService; import com.anjiplus.template.gaea.business.modules.dashboardwidget.service.ReportDashboardWidgetService;
import com.anjiplus.template.gaea.business.modules.data.dashboardwidget.dao.ReportDashboardWidgetMapper; import com.anjiplus.template.gaea.business.modules.dashboardwidget.dao.ReportDashboardWidgetMapper;
/** /**
* @desc ReportDashboardWidget * @desc ReportDashboardWidget
* @author Raod * @author Raod

@ -1,17 +0,0 @@
package com.anjiplus.template.gaea.business.modules.data.report.service;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.report.controller.dto.ReportDto;
import com.anjiplus.template.gaea.business.modules.data.report.controller.param.ReportParam;
import com.anjiplus.template.gaea.business.modules.data.report.dao.entity.Report;
/**
* TODO
*
* @author chenkening
* @date 2021/3/26 10:35
*/
public interface ReportService extends GaeaBaseService<ReportParam, Report> {
void delReport(ReportDto reportDto);
}

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.controller; package com.anjiplus.template.gaea.business.modules.dataSet.controller;
import com.anji.plus.gaea.annotation.AccessKey; import com.anji.plus.gaea.annotation.AccessKey;
import com.anji.plus.gaea.annotation.Permission; import com.anji.plus.gaea.annotation.Permission;
@ -9,11 +9,11 @@ import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anji.plus.gaea.holder.UserContentHolder; import com.anji.plus.gaea.holder.UserContentHolder;
import com.anji.plus.gaea.utils.GaeaUtils; import com.anji.plus.gaea.utils.GaeaUtils;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.param.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSet.controller.param.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.param.DataSetTestTransformParam; import com.anjiplus.template.gaea.business.modules.dataSet.controller.param.DataSetTestTransformParam;
import com.anjiplus.template.gaea.business.modules.data.dataSet.dao.entity.DataSet; import com.anjiplus.template.gaea.business.modules.dataSet.dao.entity.DataSet;
import com.anjiplus.template.gaea.business.modules.data.dataSet.service.DataSetService; import com.anjiplus.template.gaea.business.modules.dataSet.service.DataSetService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto; package com.anjiplus.template.gaea.business.modules.dataSet.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto; package com.anjiplus.template.gaea.business.modules.dataSet.controller.dto;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dataSet.controller.param; package com.anjiplus.template.gaea.business.modules.dataSet.controller.param;
import com.anji.plus.gaea.annotation.Query; import com.anji.plus.gaea.annotation.Query;
import com.anji.plus.gaea.constant.QueryEnum; import com.anji.plus.gaea.constant.QueryEnum;

@ -1,8 +1,8 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dataSet.controller.param; package com.anjiplus.template.gaea.business.modules.dataSet.controller.param;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.dao; package com.anjiplus.template.gaea.business.modules.dataSet.dao;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSet.dao.entity.DataSet; import com.anjiplus.template.gaea.business.modules.dataSet.dao.entity.DataSet;
/** /**
* DataSet Mapper * DataSet Mapper

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.dao.entity; package com.anjiplus.template.gaea.business.modules.dataSet.dao.entity;
import com.anji.plus.gaea.annotation.Unique; import com.anji.plus.gaea.annotation.Unique;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;

@ -1,11 +1,11 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.service; package com.anjiplus.template.gaea.business.modules.dataSet.service;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.OriginalDataDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.OriginalDataDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.param.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSet.controller.param.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSet.dao.entity.DataSet; import com.anjiplus.template.gaea.business.modules.dataSet.dao.entity.DataSet;
import java.util.List; import java.util.List;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSet.service.impl; package com.anjiplus.template.gaea.business.modules.dataSet.service.impl;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -8,20 +8,20 @@ import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anji.plus.gaea.utils.GaeaBeanUtils; import com.anji.plus.gaea.utils.GaeaBeanUtils;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.OriginalDataDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.OriginalDataDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSet.dao.DataSetMapper; import com.anjiplus.template.gaea.business.modules.dataSet.dao.DataSetMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSet.dao.entity.DataSet; import com.anjiplus.template.gaea.business.modules.dataSet.dao.entity.DataSet;
import com.anjiplus.template.gaea.business.modules.data.dataSet.service.DataSetService; import com.anjiplus.template.gaea.business.modules.dataSet.service.DataSetService;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.service.DataSetParamService; import com.anjiplus.template.gaea.business.modules.dataSetParam.service.DataSetParamService;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity.DataSetTransform; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity.DataSetTransform;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.DataSetTransformService; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.DataSetTransformService;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto.DataSourceDto; import com.anjiplus.template.gaea.business.modules.dataSource.controller.dto.DataSourceDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity.DataSource; import com.anjiplus.template.gaea.business.modules.dataSource.dao.entity.DataSource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.service.DataSourceService; import com.anjiplus.template.gaea.business.modules.dataSource.service.DataSourceService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;

@ -1,15 +1,14 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller; package com.anjiplus.template.gaea.business.modules.dataSetParam.controller;
import com.anji.plus.gaea.bean.ResponseBean; import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController; import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.param.DataSetParamParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.param.DataSetParamParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.param.DataSetParamValidationParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.param.DataSetParamValidationParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.service.DataSetParamService; import com.anjiplus.template.gaea.business.modules.dataSetParam.service.DataSetParamService;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.ConnectionParam;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto; package com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.param; package com.anjiplus.template.gaea.business.modules.dataSetParam.controller.param;
import com.anji.plus.gaea.curd.params.PageParam; import com.anji.plus.gaea.curd.params.PageParam;
import lombok.Data; import lombok.Data;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.param; package com.anjiplus.template.gaea.business.modules.dataSetParam.controller.param;
import lombok.Data; import lombok.Data;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao; package com.anjiplus.template.gaea.business.modules.dataSetParam.dao;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity.DataSetParam;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity; package com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;

@ -1,11 +1,10 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.service; package com.anjiplus.template.gaea.business.modules.dataSetParam.service;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.param.DataSetParamParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.param.DataSetParamParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity.DataSetParam;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;

@ -1,13 +1,13 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.service.impl; package com.anjiplus.template.gaea.business.modules.dataSetParam.service.impl;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.controller.dto.DataSetParamDto; import com.anjiplus.template.gaea.business.modules.dataSetParam.controller.dto.DataSetParamDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.DataSetParamMapper; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.DataSetParamMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.dao.entity.DataSetParam; import com.anjiplus.template.gaea.business.modules.dataSetParam.dao.entity.DataSetParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.service.DataSetParamService; import com.anjiplus.template.gaea.business.modules.dataSetParam.service.DataSetParamService;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.util.ParamsResolverHelper; import com.anjiplus.template.gaea.business.modules.dataSetParam.util.ParamsResolverHelper;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetParam.util; package com.anjiplus.template.gaea.business.modules.dataSetParam.util;
import org.springframework.util.PropertyPlaceholderHelper; import org.springframework.util.PropertyPlaceholderHelper;

@ -1,12 +1,12 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller; package com.anjiplus.template.gaea.business.modules.dataSetTransform.controller;
import com.anji.plus.gaea.curd.controller.GaeaBaseController; import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.param.DataSetTransformParam; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.param.DataSetTransformParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity.DataSetTransform; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity.DataSetTransform;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.DataSetTransformService; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.DataSetTransformService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto; package com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.param; package com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.param;
import com.anji.plus.gaea.curd.params.PageParam; import com.anji.plus.gaea.curd.params.PageParam;
import lombok.Data; import lombok.Data;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao; package com.anjiplus.template.gaea.business.modules.dataSetTransform.dao;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity.DataSetTransform; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity.DataSetTransform;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
/** /**

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity; package com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;

@ -1,11 +1,11 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service; package com.anjiplus.template.gaea.business.modules.dataSetTransform.service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.param.DataSetTransformParam; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.param.DataSetTransformParam;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity.DataSetTransform; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity.DataSetTransform;
import java.util.List; import java.util.List;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service; package com.anjiplus.template.gaea.business.modules.dataSetTransform.service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import java.util.List; import java.util.List;

@ -1,13 +1,13 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.impl; package com.anjiplus.template.gaea.business.modules.dataSetTransform.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.DataSetTransformMapper; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.DataSetTransformMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.dao.entity.DataSetTransform; import com.anjiplus.template.gaea.business.modules.dataSetTransform.dao.entity.DataSetTransform;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.DataSetTransformService; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.DataSetTransformService;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.TransformStrategy; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.TransformStrategy;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.impl; package com.anjiplus.template.gaea.business.modules.dataSetTransform.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.TransformStrategy; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.TransformStrategy;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.impl; package com.anjiplus.template.gaea.business.modules.dataSetTransform.service.impl;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.controller.dto.DataSetTransformDto; import com.anjiplus.template.gaea.business.modules.dataSetTransform.controller.dto.DataSetTransformDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetTransform.service.TransformStrategy; import com.anjiplus.template.gaea.business.modules.dataSetTransform.service.TransformStrategy;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import jdk.nashorn.api.scripting.ScriptObjectMirror; import jdk.nashorn.api.scripting.ScriptObjectMirror;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.config; package com.anjiplus.template.gaea.business.modules.dataSource.config;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.config; package com.anjiplus.template.gaea.business.modules.dataSource.config;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;

@ -1,14 +1,14 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.controller; package com.anjiplus.template.gaea.business.modules.dataSource.controller;
import com.anji.plus.gaea.bean.ResponseBean; import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController; import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto.DataSourceDto; import com.anjiplus.template.gaea.business.modules.dataSource.controller.dto.DataSourceDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.ConnectionParam; import com.anjiplus.template.gaea.business.modules.dataSource.controller.param.ConnectionParam;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.DataSourceParam; import com.anjiplus.template.gaea.business.modules.dataSource.controller.param.DataSourceParam;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity.DataSource; import com.anjiplus.template.gaea.business.modules.dataSource.dao.entity.DataSource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.service.DataSourceService; import com.anjiplus.template.gaea.business.modules.dataSource.service.DataSourceService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto; package com.anjiplus.template.gaea.business.modules.dataSource.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO; import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import lombok.Data; import lombok.Data;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param; package com.anjiplus.template.gaea.business.modules.dataSource.controller.param;
import lombok.Data; import lombok.Data;

@ -1,5 +1,5 @@
/**/ /**/
package com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param; package com.anjiplus.template.gaea.business.modules.dataSource.controller.param;
import com.anji.plus.gaea.annotation.Query; import com.anji.plus.gaea.annotation.Query;
import com.anji.plus.gaea.constant.QueryEnum; import com.anji.plus.gaea.constant.QueryEnum;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.dao; package com.anjiplus.template.gaea.business.modules.dataSource.dao;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper; import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity.DataSource; import com.anjiplus.template.gaea.business.modules.dataSource.dao.entity.DataSource;
/** /**
* DataSource Mapper * DataSource Mapper

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity; package com.anjiplus.template.gaea.business.modules.dataSource.dao.entity;
import com.anji.plus.gaea.annotation.Unique; import com.anji.plus.gaea.annotation.Unique;
import com.anji.plus.gaea.curd.entity.GaeaBaseEntity; import com.anji.plus.gaea.curd.entity.GaeaBaseEntity;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api; package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
/** /**
* *

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api; package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
import javax.sql.DataSource; import javax.sql.DataSource;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api; package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
/** /**
* *

@ -1,6 +1,6 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api; package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.connection.IPooledConnection; import com.anjiplus.template.gaea.business.modules.dataSource.pool.connection.IPooledConnection;
/** /**
* *

@ -1,6 +1,6 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.connection; package com.anjiplus.template.gaea.business.modules.dataSource.pool.connection;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api.IPooledDataSourceConfig; import com.anjiplus.template.gaea.business.modules.dataSource.pool.api.IPooledDataSourceConfig;
import java.sql.Connection; import java.sql.Connection;

@ -1,7 +1,7 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.connection; package com.anjiplus.template.gaea.business.modules.dataSource.pool.connection;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api.IPooledDataSourceConfig; import com.anjiplus.template.gaea.business.modules.dataSource.pool.api.IPooledDataSourceConfig;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.exception.JdbcPoolException; import com.anjiplus.template.gaea.business.modules.dataSource.pool.exception.JdbcPoolException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.sql.*; import java.sql.*;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.constant; package com.anjiplus.template.gaea.business.modules.dataSource.pool.constant;
/** /**
* Created by raodeming on 2021/3/19. * Created by raodeming on 2021/3/19.

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.constant; package com.anjiplus.template.gaea.business.modules.dataSource.pool.constant;
/** /**
* 线 * 线

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource; package com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource;
/** /**
* @author binbin.hou * @author binbin.hou

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource; package com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api.ILifeCycle; import com.anjiplus.template.gaea.business.modules.dataSource.pool.api.ILifeCycle;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api.IPooledDataSourceConfig; import com.anjiplus.template.gaea.business.modules.dataSource.pool.api.IPooledDataSourceConfig;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.constant.PooledConst; import com.anjiplus.template.gaea.business.modules.dataSource.pool.constant.PooledConst;
/** /**
* @author binbin.hou * @author binbin.hou

@ -1,6 +1,6 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource; package com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.api.IDataSourceConfig; import com.anjiplus.template.gaea.business.modules.dataSource.pool.api.IDataSourceConfig;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.sql.Connection; import java.sql.Connection;

@ -1,9 +1,9 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource; package com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.connection.IPooledConnection; import com.anjiplus.template.gaea.business.modules.dataSource.pool.connection.IPooledConnection;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.connection.PooledConnection; import com.anjiplus.template.gaea.business.modules.dataSource.pool.connection.PooledConnection;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.exception.JdbcPoolException; import com.anjiplus.template.gaea.business.modules.dataSource.pool.exception.JdbcPoolException;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util.DriverClassUtil; import com.anjiplus.template.gaea.business.modules.dataSource.pool.util.DriverClassUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;

@ -1,6 +1,6 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource; package com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util.DriverClassUtil; import com.anjiplus.template.gaea.business.modules.dataSource.pool.util.DriverClassUtil;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.sql.Connection; import java.sql.Connection;

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.exception; package com.anjiplus.template.gaea.business.modules.dataSource.pool.exception;
/** /**
* @author binbin.hou * @author binbin.hou

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util; package com.anjiplus.template.gaea.business.modules.dataSource.pool.util;
/** /**
* Created by raodeming on 2021/3/19. * Created by raodeming on 2021/3/19.

@ -1,4 +1,4 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util; package com.anjiplus.template.gaea.business.modules.dataSource.pool.util;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;

@ -1,8 +1,8 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util; package com.anjiplus.template.gaea.business.modules.dataSource.pool.util;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto.DataSourceDto; import com.anjiplus.template.gaea.business.modules.dataSource.controller.dto.DataSourceDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource.PooledDataSource; import com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource.PooledDataSource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.datasource.UnPooledDataSource; import com.anjiplus.template.gaea.business.modules.dataSource.pool.datasource.UnPooledDataSource;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import java.sql.Connection; import java.sql.Connection;

@ -1,13 +1,13 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.service; package com.anjiplus.template.gaea.business.modules.dataSource.service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.anji.plus.gaea.curd.service.GaeaBaseService; import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto.DataSourceDto; import com.anjiplus.template.gaea.business.modules.dataSource.controller.dto.DataSourceDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.ConnectionParam; import com.anjiplus.template.gaea.business.modules.dataSource.controller.param.ConnectionParam;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.DataSourceParam; import com.anjiplus.template.gaea.business.modules.dataSource.controller.param.DataSourceParam;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity.DataSource; import com.anjiplus.template.gaea.business.modules.dataSource.dao.entity.DataSource;
import java.util.List; import java.util.List;

@ -1,5 +1,5 @@
package com.anjiplus.template.gaea.business.modules.data.dataSource.service.impl; package com.anjiplus.template.gaea.business.modules.dataSource.service.impl;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@ -8,16 +8,15 @@ import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
import com.anji.plus.gaea.exception.BusinessExceptionBuilder; import com.anji.plus.gaea.exception.BusinessExceptionBuilder;
import com.anji.plus.gaea.utils.GaeaAssert; import com.anji.plus.gaea.utils.GaeaAssert;
import com.anjiplus.template.gaea.business.code.ResponseCode; import com.anjiplus.template.gaea.business.code.ResponseCode;
import com.anjiplus.template.gaea.business.modules.data.dataSet.controller.dto.DataSetDto; import com.anjiplus.template.gaea.business.modules.dataSet.controller.dto.DataSetDto;
import com.anjiplus.template.gaea.business.modules.data.dataSetParam.service.DataSetParamService; import com.anjiplus.template.gaea.business.modules.dataSetParam.service.DataSetParamService;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.dto.DataSourceDto; import com.anjiplus.template.gaea.business.modules.dataSource.controller.dto.DataSourceDto;
import com.anjiplus.template.gaea.business.modules.data.dataSource.controller.param.ConnectionParam; import com.anjiplus.template.gaea.business.modules.dataSource.controller.param.ConnectionParam;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.DataSourceMapper; import com.anjiplus.template.gaea.business.modules.dataSource.dao.DataSourceMapper;
import com.anjiplus.template.gaea.business.modules.data.dataSource.dao.entity.DataSource; import com.anjiplus.template.gaea.business.modules.dataSource.dao.entity.DataSource;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.constant.JdbcConstants; import com.anjiplus.template.gaea.business.modules.dataSource.pool.constant.JdbcConstants;
import com.anjiplus.template.gaea.business.modules.data.dataSource.pool.util.JdbcUtil; import com.anjiplus.template.gaea.business.modules.dataSource.pool.util.JdbcUtil;
import com.anjiplus.template.gaea.business.modules.data.dataSource.service.DataSourceService; import com.anjiplus.template.gaea.business.modules.dataSource.service.DataSourceService;
import com.anjiplus.template.gaea.business.code.ResponseCode;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;

@ -1,74 +0,0 @@
package com.anjiplus.template.gaea.business.modules.export.controller;
import com.anji.plus.gaea.annotation.log.GaeaAuditLog;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anji.plus.gaea.utils.GaeaBeanUtils;
import com.anjiplus.template.gaea.business.modules.export.controller.dto.GaeaExportDTO;
import com.anjiplus.template.gaea.business.modules.export.controller.param.GaeaExportParam;
import com.anjiplus.template.gaea.business.modules.export.controller.param.GaeaExportQueryParam;
import com.anjiplus.template.gaea.business.modules.export.dao.entity.GaeaExport;
import com.anjiplus.template.gaea.business.modules.export.service.GaeaExportService;
import com.anji.plus.gaea.export.vo.ExportOperation;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.stream.Collectors;
/**
* (GaeaExport)
*
* @author makejava
* @since 2021-02-07 17:12:31
*/
@RestController
@RequestMapping("/export")
@Api(value = "/export", tags = "导出中心")
public class GaeaExportController extends GaeaBaseController<GaeaExportParam, GaeaExport, GaeaExportDTO> {
@Autowired
private GaeaExportService gaeaExportService;
@Override
public GaeaBaseService<GaeaExportParam, GaeaExport> getService() {
return gaeaExportService;
}
@Override
public GaeaExport getEntity() {
return new GaeaExport();
}
@Override
public GaeaExportDTO getDTO() {
return new GaeaExportDTO();
}
@PostMapping("/queryAdvanceExport")
@GaeaAuditLog(pageTitle = "高级查询")
public ResponseBean queryExportInfo(@RequestBody GaeaExportQueryParam param) {
Page<GaeaExport> exportList=gaeaExportService.getExportListPage(param);
List<GaeaExportDTO> list = exportList.getRecords().stream()
.map(entity -> GaeaBeanUtils.copyAndFormatter(entity, getDTO()))
.collect(Collectors.toList());
Page<GaeaExportDTO> pageDto = new Page<>();
pageDto.setCurrent(exportList.getCurrent());
pageDto.setRecords(list);
pageDto.setPages(exportList.getPages());
pageDto.setTotal(exportList.getTotal());
pageDto.setSize(exportList.getSize());
return responseSuccessWithData(pageDto);
}
@PostMapping("/saveExportLog")
public Boolean export(@RequestBody ExportOperation exportOperation) {
return gaeaExportService.saveExportLog(exportOperation);
}
}

@ -1,144 +0,0 @@
package com.anjiplus.template.gaea.business.modules.export.controller.dto;
import com.anji.plus.gaea.curd.dto.GaeaBaseDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.Date;
/**
* (GaeaExport)
*
* @author makejava
* @since 2021-02-07 17:12:25
*/
@ApiModel(value = "导出中心")
public class GaeaExportDTO extends GaeaBaseDTO {
/**
* t_fileidhttp://auth/file/download/fileId
*/
@ApiModelProperty(value = "文件在t_file中的id前端传它来读流接口显示http://auth/file/download/fileId")
private String fileId;
/**
* :6
*/
@ApiModelProperty(value = "文件标题,比如:对账单报表6月份报表")
private String fileTitle;
/**
*
*/
@ApiModelProperty(value = "导出前,查询的数据开始时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime resultStartTime;
/**
*
*/
@ApiModelProperty(value = "导出前,查询的数据结束时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime resultEndTime;
/**
*
*/
@ApiModelProperty(value = "导出查询结果,数据总条数")
private Long resultSize;
/**
*
*/
@ApiModelProperty(value = "文件导出触发时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime fileCreateTime;
/**
*
*/
@ApiModelProperty(value = "文件生成完成时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private LocalDateTime fileFinishTime;
/**
* creatingsuccess,failed
*/
@ApiModelProperty(value = "文件状态creating生成中success生成成功,failed生成失败")
private String fileStatus;
/**
*
*/
@ApiModelProperty(value = "备注")
private String remark;
public String getFileId() {
return fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public String getFileTitle() {
return fileTitle;
}
public void setFileTitle(String fileTitle) {
this.fileTitle = fileTitle;
}
public Long getResultSize() {
return resultSize;
}
public void setResultSize(Long resultSize) {
this.resultSize = resultSize;
}
public LocalDateTime getResultStartTime() {
return resultStartTime;
}
public void setResultStartTime(LocalDateTime resultStartTime) {
this.resultStartTime = resultStartTime;
}
public LocalDateTime getResultEndTime() {
return resultEndTime;
}
public void setResultEndTime(LocalDateTime resultEndTime) {
this.resultEndTime = resultEndTime;
}
public LocalDateTime getFileCreateTime() {
return fileCreateTime;
}
public void setFileCreateTime(LocalDateTime fileCreateTime) {
this.fileCreateTime = fileCreateTime;
}
public LocalDateTime getFileFinishTime() {
return fileFinishTime;
}
public void setFileFinishTime(LocalDateTime fileFinishTime) {
this.fileFinishTime = fileFinishTime;
}
public String getFileStatus() {
return fileStatus;
}
public void setFileStatus(String fileStatus) {
this.fileStatus = fileStatus;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save