Merge branch 'optimize' of github.com:gcpaas/DataRoom into optimize

main
wu.jian2 2 years ago
commit 992231d076

@ -6,7 +6,7 @@
<parent>
<groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId>
<version>0.0.1.2023070702.Alpha</version>
<version>0.0.1.2023071001.Alpha</version>
</parent>
<artifactId>dataroom-core</artifactId>

@ -17,6 +17,9 @@ import java.util.List;
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "className")
public class Chart {
@ApiModelProperty(notes = "版本")
private String version;
@ApiModelProperty(notes = "图表唯一标识")
private String code;

@ -6,7 +6,7 @@
<parent>
<groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId>
<version>0.0.1.2023070702.Alpha</version>
<version>0.0.1.2023071001.Alpha</version>
</parent>
<artifactId>dataroom-server</artifactId>
@ -22,7 +22,7 @@
<dependency>
<groupId>com.gccloud</groupId>
<artifactId>dataroom-core</artifactId>
<version>0.0.1.2023070702.Alpha</version>
<version>0.0.1.2023071001.Alpha</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>

@ -132,6 +132,7 @@ CREATE TABLE `ds_datasource` (
`username` varchar(255) DEFAULT NULL COMMENT '用户名',
`password` text COMMENT '密码',
`module_code` varchar(255) DEFAULT NULL COMMENT '模块编码',
`table_name` varchar(255) DEFAULT NULL COMMENT '表名',
`editable` tinyint(2) DEFAULT '0' COMMENT '是否可编辑0 不可编辑 1 可编辑',
`remark` varchar(255) DEFAULT NULL,
`update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',

@ -1,10 +1,9 @@
-- 更新大屏配置的类名
#20230621 配置表中的类名替换
UPDATE big_screen_page SET config = REPLACE(config, '"className":"com.gccloud.bigscreen', '"className":"com.gccloud.dataroom');
UPDATE big_screen_page SET config = REPLACE(config, '"className":"com.gccloud.dataroom.core.module.manage.dto.BigScreenPageDTO', '"className":"com.gccloud.dataroom.core.module.manage.dto.DataRoomPageDTO');
-- 新增数据集相关的表
#20230621 新增数据集相关的表
DROP TABLE IF EXISTS `ds_category_tree`;
CREATE TABLE `ds_category_tree` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
@ -77,4 +76,31 @@ ALTER TABLE `ds_datasource` ADD COLUMN `update_by` bigint(64) NULL DEFAULT 2 COM
ALTER TABLE `ds_dataset` ADD COLUMN `create_by` bigint(64) NULL DEFAULT 2 COMMENT '创建人' AFTER `del_flag`;
ALTER TABLE `ds_dataset` ADD COLUMN `update_by` bigint(64) NULL DEFAULT 2 COMMENT '更新人' AFTER `create_by`;
ALTER TABLE `ds_category_tree` ADD COLUMN `create_by` bigint(64) NULL DEFAULT 2 COMMENT '创建人' AFTER `del_flag`;
ALTER TABLE `ds_category_tree` ADD COLUMN `update_by` bigint(64) NULL DEFAULT 2 COMMENT '更新人' AFTER `create_by`;
ALTER TABLE `ds_category_tree` ADD COLUMN `update_by` bigint(64) NULL DEFAULT 2 COMMENT '更新人' AFTER `create_by`;
# 20230710 添加数据集标签表
DROP TABLE IF EXISTS `ds_label`;
CREATE TABLE `ds_label` (
`id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '主键',
`label_name` varchar(255) DEFAULT NULL COMMENT '标签名称',
`label_type` varchar(255) DEFAULT NULL COMMENT '标签类型',
`label_desc` varchar(255) DEFAULT NULL COMMENT '标签描述',
`update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_by` bigint(64) null default 2 comment '创建人',
`update_by` bigint(64) null default 2 comment '更新人',
`del_flag` tinyint(2) NOT NULL DEFAULT '0' COMMENT '删除标识',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_mysql500_ci COMMENT='标签';
DROP TABLE IF EXISTS `ds_dataset_label`;
CREATE TABLE `ds_dataset_label` (
`id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '主键',
`dataset_id` bigint(32) DEFAULT NULL COMMENT '数据集ID',
`label_id` bigint(32) DEFAULT NULL COMMENT '标签ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_mysql500_ci COMMENT='数据集与标签关联表';
# 20230710 数据源新增字段
ALTER TABLE `ds_datasource` ADD COLUMN `table_name` varchar(255) DEFAULT NULL COMMENT '表名' AFTER `module_code`;

@ -12,7 +12,7 @@
<groupId>com.gccloud</groupId>
<artifactId>dataroom</artifactId>
<version>0.0.1.2023070702.Alpha</version>
<version>0.0.1.2023071001.Alpha</version>
<packaging>pom</packaging>
<description>基于G2Plot、Echarts的大屏设计服务端具备设计、预览能力支持MySQL、Oracle、PostgreSQL、Groovy等数据集接入
@ -59,7 +59,7 @@
<postgresql.version>42.3.3</postgresql.version>
<clickhouse.version>0.3.2</clickhouse.version>
<commons-io.version>2.2</commons-io.version>
<dataset.core.version>0.0.1.2023070702.Alpha</dataset.core.version>
<dataset.core.version>0.0.1.2023071001.Alpha</dataset.core.version>
</properties>
<dependencyManagement>

@ -37,7 +37,7 @@ const customConfig = {
// 名称
title: '查询',
root: {
version: 0
version: '2023071001'
},
// 自定义属性
customize: {

@ -12,7 +12,7 @@ export const settingConfig = {
const customConfig = {
type: 'horizontalLine',
root: {
version: 0
version: '2023071001'
},
customize: {
// 边框线颜色

@ -12,7 +12,7 @@ export const settingConfig = {
const customConfig = {
type: 'input',
root: {
version: 0
version: '2023071001'
},
// 自定义属性
customize: {

@ -17,7 +17,7 @@ export const settingConfig = {
const customConfig = {
type: 'picture',
root: {
version: 0
version: '2023071001'
},
customize: {
url: '',

@ -25,7 +25,7 @@ export const settingConfig = {
const customConfig = {
type: 'screenScrollRanking',
root: {
version: '0.0.1',
version: '2023071001',
contribution: false
},
customize: {

@ -33,7 +33,7 @@ export const settingConfig = {
const customConfig = {
type: 'tables',
root: {
version: '0.0.1',
version: '2023071001',
contribution: false
},
customize: {

@ -12,7 +12,7 @@ export const settingConfig = {
const customConfig = {
type: 'verticalLine',
root: {
version: 0
version: '2023071001'
},
customize: {
// 边框线颜色

@ -12,7 +12,7 @@ export const settingConfig = {
const customConfig = {
type: 'video',
root: {
version: 0
version: '2023071001'
},
customize: {
videoType: 'application/x-mpegURL',

@ -4,7 +4,7 @@
* @Author: xing.heng
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Line'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'TinyLine'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'TinyArea'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Bar'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Bar'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Column'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Column'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Column'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Column'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Funnel'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Funnel'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Funnel'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Treemap'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'WordCloud'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Gauge'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Progress'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Liquid'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Liquid'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Gauge'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Progress'
// 标题

@ -1,5 +1,5 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'RingProgress'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Liquid'
// 标题

@ -35,6 +35,8 @@ export default [
/*
* @description: 配置参考https://g2plot.antv.antgroup.com/examples
*/
// 配置版本号
const version = '2023071001'
// 分类
const category = 'Line'
// 标题
@ -163,6 +165,7 @@ const option = {
export default {
category,
version,
title,
chartType,
name,

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Radar'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Radar'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Area'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Area'
// 标题

@ -5,7 +5,7 @@
*/
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Area'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Pie'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Pie'
// 标题

@ -1,6 +1,6 @@
// 配置版本号
const version = '0.0.1'
const version = '2023071001'
// 分类
const category = 'Rose'
// 标题

@ -4,7 +4,7 @@ export const settingConfig = {
}
const customConfig = {
root: {
version: '0.0.1',
version: '2023071001',
contribution: false
},
customize: {

@ -11,6 +11,14 @@ import { get, post } from 'packages/js/utils/http'
*/
const datasetPage = (params = {}, flag = false) => get('/dataset/page', params, flag)
/**
* 数据集列表查询
* @param params
* @param flag
* @returns {*}
*/
const datasetList = (params = {}, flag = false) => get('/dataset/list', params, flag)
/**
* 数据集名称校验
* @param params
@ -98,6 +106,7 @@ const categoryRemove = (id = '-1', flag = false) => post(`/category/delete/${id}
export {
datasetPage,
datasetList,
datasetAdd,
datasetUpdate,
datasetRemove,

Loading…
Cancel
Save