移植了数据看板的查询方法
This commit is contained in:
parent
3ea7026048
commit
a375c2b35e
@ -149,6 +149,17 @@
|
|||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
<version>1.2.83</version>
|
<version>1.2.83</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.antlr</groupId>
|
||||||
|
<artifactId>antlr</artifactId>
|
||||||
|
<version>3.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.beust</groupId>
|
||||||
|
<artifactId>jcommander</artifactId>
|
||||||
|
<version>1.82</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.stdproject.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author bi-coder
|
||||||
|
*/
|
||||||
|
public class ChartConstants {
|
||||||
|
public static final String YEAR_MOM = "year_mom";
|
||||||
|
public static final String MONTH_MOM = "month_mom";
|
||||||
|
public static final String YEAR_YOY = "year_yoy";
|
||||||
|
public static final String DAY_MOM = "day_mom";
|
||||||
|
public static final String MONTH_YOY = "month_yoy";
|
||||||
|
public static final String[] M_Y = {YEAR_MOM, MONTH_MOM, YEAR_YOY, DAY_MOM, MONTH_YOY};
|
||||||
|
|
||||||
|
//图表数据查询模式
|
||||||
|
public static final class VIEW_RESULT_MODE {
|
||||||
|
|
||||||
|
// 所有
|
||||||
|
public static final String ALL = "all";
|
||||||
|
|
||||||
|
// 自定义
|
||||||
|
public static final String CUSTOM = "custom";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.stdproject.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author bi-coder
|
||||||
|
*/
|
||||||
|
public class DatasetTableType {
|
||||||
|
public static String DB = "db";
|
||||||
|
public static String SQL = "sql";
|
||||||
|
public static String Es = "es";
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.stdproject.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author bi-coder
|
||||||
|
*/
|
||||||
|
public class ExtFieldConstant {
|
||||||
|
public final static Integer EXT_NORMAL = 0;
|
||||||
|
|
||||||
|
public final static Integer EXT_COPY = 1;
|
||||||
|
|
||||||
|
public final static Integer EXT_CALC = 2;
|
||||||
|
|
||||||
|
public final static Integer EXT_GROUP = 3;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.stdproject.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author bi-coder
|
||||||
|
*/
|
||||||
|
public class FunctionConstant {
|
||||||
|
/**
|
||||||
|
* 所有聚合函数数组
|
||||||
|
*/
|
||||||
|
public static final String[] AGG_FUNC = {"SUM", "AVG", "MAX", "MIN", "COUNT", "STDDEV", "STDDEV_POP", "STDDEV_SAMP", "VAR_POP", "VAR_SAMP"};
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.stdproject.controller;
|
||||||
|
|
||||||
|
import com.stdproject.common.OperationLog;
|
||||||
|
import com.stdproject.config.ResponseResult;
|
||||||
|
import com.stdproject.entity.vo.DataVisualizationVO;
|
||||||
|
import com.stdproject.mapper.ExtDataVisualizationMapper;
|
||||||
|
import com.stdproject.request.DataVisualizationBaseRequest;
|
||||||
|
import com.stdproject.service.manage.ChartDataManage;
|
||||||
|
import com.stdproject.service.manage.ChartViewManege;
|
||||||
|
import com.stdproject.utils.DatasetUtils;
|
||||||
|
import io.gisbi.constant.CommonConstants;
|
||||||
|
import io.gisbi.exception.DEException;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewDTO;
|
||||||
|
import io.gisbi.result.ResultCode;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/chartData")
|
||||||
|
public class ChartDataController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ChartDataManage chartDataManage;
|
||||||
|
|
||||||
|
@Operation(summary = "获取图表数据")
|
||||||
|
@OperationLog(type = "01", module = "数据可视化", description = "获取图表数据")
|
||||||
|
@PostMapping("getData")
|
||||||
|
public ResponseResult getData(ChartViewDTO chartViewDTO) throws Exception {
|
||||||
|
try {
|
||||||
|
// 从模板数据获取
|
||||||
|
DatasetUtils.viewDecode(chartViewDTO);
|
||||||
|
ChartViewDTO dto = chartDataManage.calcData(chartViewDTO);
|
||||||
|
DatasetUtils.viewEncode(dto);
|
||||||
|
chartDataManage.encodeData(dto);
|
||||||
|
return ResponseResult.successData(dto);
|
||||||
|
} catch (Exception e) {
|
||||||
|
DEException.throwException(ResultCode.DATA_IS_WRONG.code(), e.getMessage() + "\n\n" + ExceptionUtils.getStackTrace(e));
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
package com.stdproject.controller;
|
||||||
|
|
||||||
|
import com.stdproject.common.OperationLog;
|
||||||
|
import com.stdproject.config.ResponseResult;
|
||||||
|
import com.stdproject.entity.vo.DataVisualizationVO;
|
||||||
|
import com.stdproject.mapper.ExtDataVisualizationMapper;
|
||||||
|
import com.stdproject.request.DataVisualizationBaseRequest;
|
||||||
|
import com.stdproject.service.manage.ChartViewManege;
|
||||||
|
import com.stdproject.utils.DatasetUtils;
|
||||||
|
import io.gisbi.constant.CommonConstants;
|
||||||
|
import io.gisbi.exception.DEException;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewDTO;
|
||||||
|
import io.gisbi.result.ResultCode;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
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.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/dataVisualization")
|
||||||
|
public class DataVisualizationController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ExtDataVisualizationMapper extDataVisualizationMapper;
|
||||||
|
@Resource
|
||||||
|
private ChartViewManege chartViewManege;
|
||||||
|
@Operation(summary = "根据视图ID查询模块数据")
|
||||||
|
@OperationLog(type = "01", module = "数据可视化", description = "根据ID查询数据看板")
|
||||||
|
@PostMapping("findById")
|
||||||
|
public ResponseResult findById(@RequestBody DataVisualizationBaseRequest request) {
|
||||||
|
Long dvId = request.getId();
|
||||||
|
String busiFlag = request.getBusiFlag();
|
||||||
|
String resourceTable = request.getResourceTable();
|
||||||
|
DataVisualizationVO result = extDataVisualizationMapper.findDvInfo(dvId, busiFlag, resourceTable);
|
||||||
|
if (result != null) {
|
||||||
|
//获取图表信息
|
||||||
|
List<ChartViewDTO> chartViewDTOS = chartViewManege.listBySceneId(dvId, resourceTable);
|
||||||
|
if (!CollectionUtils.isEmpty(chartViewDTOS)) {
|
||||||
|
// 增加过滤当前使用的图表信息
|
||||||
|
Map<Long, ChartViewDTO> viewInfo = chartViewDTOS.stream().filter(item -> result.getComponentData().indexOf("\"id\":\"" + item.getId()) > 0).collect(Collectors.toMap(ChartViewDTO::getId, chartView -> chartView));
|
||||||
|
result.setCanvasViewInfo(viewInfo);
|
||||||
|
}
|
||||||
|
result.setWeight(9);
|
||||||
|
return ResponseResult.successData(result);
|
||||||
|
} else {
|
||||||
|
DEException.throwException("资源不存在或已经被删除...");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
641
backend/src/main/java/com/stdproject/entity/CoreChartView.java
Normal file
641
backend/src/main/java/com/stdproject/entity/CoreChartView.java
Normal file
@ -0,0 +1,641 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 组件图表表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2024-12-12
|
||||||
|
*/
|
||||||
|
@TableName("core_chart_view")
|
||||||
|
public class CoreChartView implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 场景ID chart_type为private的时候 是仪表板id
|
||||||
|
*/
|
||||||
|
private Long sceneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集表ID
|
||||||
|
*/
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表渲染方式
|
||||||
|
*/
|
||||||
|
private String render;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 展示结果
|
||||||
|
*/
|
||||||
|
private Integer resultCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 展示模式
|
||||||
|
*/
|
||||||
|
private String resultMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 横轴field
|
||||||
|
*/
|
||||||
|
private String xAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* table-row
|
||||||
|
*/
|
||||||
|
private String xAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纵轴field
|
||||||
|
*/
|
||||||
|
private String yAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 副轴
|
||||||
|
*/
|
||||||
|
private String yAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 堆叠项
|
||||||
|
*/
|
||||||
|
private String extStack;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气泡大小
|
||||||
|
*/
|
||||||
|
private String extBubble;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态标签
|
||||||
|
*/
|
||||||
|
private String extLabel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态提示
|
||||||
|
*/
|
||||||
|
private String extTooltip;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图形属性
|
||||||
|
*/
|
||||||
|
private String customAttr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件样式
|
||||||
|
*/
|
||||||
|
private String customStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果过滤
|
||||||
|
*/
|
||||||
|
private String customFilter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 钻取字段
|
||||||
|
*/
|
||||||
|
private String drillFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 高级
|
||||||
|
*/
|
||||||
|
private String senior;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缩略图
|
||||||
|
*/
|
||||||
|
private String snapshot;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 样式优先级 panel 仪表板 view 图表
|
||||||
|
*/
|
||||||
|
private String stylePriority;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表类型 public 公共 历史可复用的图表,private 私有 专属某个仪表板
|
||||||
|
*/
|
||||||
|
private String chartType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否插件
|
||||||
|
*/
|
||||||
|
private Boolean isPlugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据来源 template 模板数据 dataset 数据集数据
|
||||||
|
*/
|
||||||
|
private String dataFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表字段集合
|
||||||
|
*/
|
||||||
|
private String viewFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启刷新
|
||||||
|
*/
|
||||||
|
private Boolean refreshViewEnable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新时间单位
|
||||||
|
*/
|
||||||
|
private String refreshUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新时间
|
||||||
|
*/
|
||||||
|
private Integer refreshTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启联动
|
||||||
|
*/
|
||||||
|
private Boolean linkageActive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启跳转
|
||||||
|
*/
|
||||||
|
private Boolean jumpActive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
private Long copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制ID
|
||||||
|
*/
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区间条形图开启时间纬度开启聚合
|
||||||
|
*/
|
||||||
|
private Boolean aggregate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流向地图起点名称field
|
||||||
|
*/
|
||||||
|
private String flowMapStartName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流向地图终点名称field
|
||||||
|
*/
|
||||||
|
private String flowMapEndName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 颜色维度field
|
||||||
|
*/
|
||||||
|
private String extColor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图形属性_移动端
|
||||||
|
*/
|
||||||
|
private String customAttrMobile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件样式_移动端
|
||||||
|
*/
|
||||||
|
private String customStyleMobile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段排序优先级
|
||||||
|
*/
|
||||||
|
private String sortPriority;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle() {
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSceneId() {
|
||||||
|
return sceneId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSceneId(Long sceneId) {
|
||||||
|
this.sceneId = sceneId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTableId() {
|
||||||
|
return tableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTableId(Long tableId) {
|
||||||
|
this.tableId = tableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRender() {
|
||||||
|
return render;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRender(String render) {
|
||||||
|
this.render = render;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getResultCount() {
|
||||||
|
return resultCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResultCount(Integer resultCount) {
|
||||||
|
this.resultCount = resultCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResultMode() {
|
||||||
|
return resultMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResultMode(String resultMode) {
|
||||||
|
this.resultMode = resultMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getxAxis() {
|
||||||
|
return xAxis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setxAxis(String xAxis) {
|
||||||
|
this.xAxis = xAxis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getxAxisExt() {
|
||||||
|
return xAxisExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setxAxisExt(String xAxisExt) {
|
||||||
|
this.xAxisExt = xAxisExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getyAxis() {
|
||||||
|
return yAxis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setyAxis(String yAxis) {
|
||||||
|
this.yAxis = yAxis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getyAxisExt() {
|
||||||
|
return yAxisExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setyAxisExt(String yAxisExt) {
|
||||||
|
this.yAxisExt = yAxisExt;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtStack() {
|
||||||
|
return extStack;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtStack(String extStack) {
|
||||||
|
this.extStack = extStack;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtBubble() {
|
||||||
|
return extBubble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtBubble(String extBubble) {
|
||||||
|
this.extBubble = extBubble;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtLabel() {
|
||||||
|
return extLabel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtLabel(String extLabel) {
|
||||||
|
this.extLabel = extLabel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtTooltip() {
|
||||||
|
return extTooltip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtTooltip(String extTooltip) {
|
||||||
|
this.extTooltip = extTooltip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomAttr() {
|
||||||
|
return customAttr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomAttr(String customAttr) {
|
||||||
|
this.customAttr = customAttr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomStyle() {
|
||||||
|
return customStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomStyle(String customStyle) {
|
||||||
|
this.customStyle = customStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomFilter() {
|
||||||
|
return customFilter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomFilter(String customFilter) {
|
||||||
|
this.customFilter = customFilter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDrillFields() {
|
||||||
|
return drillFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDrillFields(String drillFields) {
|
||||||
|
this.drillFields = drillFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSenior() {
|
||||||
|
return senior;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSenior(String senior) {
|
||||||
|
this.senior = senior;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy() {
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy) {
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Long createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Long updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSnapshot() {
|
||||||
|
return snapshot;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSnapshot(String snapshot) {
|
||||||
|
this.snapshot = snapshot;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStylePriority() {
|
||||||
|
return stylePriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStylePriority(String stylePriority) {
|
||||||
|
this.stylePriority = stylePriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChartType() {
|
||||||
|
return chartType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChartType(String chartType) {
|
||||||
|
this.chartType = chartType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIsPlugin() {
|
||||||
|
return isPlugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsPlugin(Boolean isPlugin) {
|
||||||
|
this.isPlugin = isPlugin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDataFrom() {
|
||||||
|
return dataFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataFrom(String dataFrom) {
|
||||||
|
this.dataFrom = dataFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getViewFields() {
|
||||||
|
return viewFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setViewFields(String viewFields) {
|
||||||
|
this.viewFields = viewFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getRefreshViewEnable() {
|
||||||
|
return refreshViewEnable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRefreshViewEnable(Boolean refreshViewEnable) {
|
||||||
|
this.refreshViewEnable = refreshViewEnable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRefreshUnit() {
|
||||||
|
return refreshUnit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRefreshUnit(String refreshUnit) {
|
||||||
|
this.refreshUnit = refreshUnit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRefreshTime() {
|
||||||
|
return refreshTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRefreshTime(Integer refreshTime) {
|
||||||
|
this.refreshTime = refreshTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getLinkageActive() {
|
||||||
|
return linkageActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinkageActive(Boolean linkageActive) {
|
||||||
|
this.linkageActive = linkageActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getJumpActive() {
|
||||||
|
return jumpActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJumpActive(Boolean jumpActive) {
|
||||||
|
this.jumpActive = jumpActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyFrom() {
|
||||||
|
return copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyFrom(Long copyFrom) {
|
||||||
|
this.copyFrom = copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyId() {
|
||||||
|
return copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyId(Long copyId) {
|
||||||
|
this.copyId = copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getAggregate() {
|
||||||
|
return aggregate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAggregate(Boolean aggregate) {
|
||||||
|
this.aggregate = aggregate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFlowMapStartName() {
|
||||||
|
return flowMapStartName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlowMapStartName(String flowMapStartName) {
|
||||||
|
this.flowMapStartName = flowMapStartName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFlowMapEndName() {
|
||||||
|
return flowMapEndName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFlowMapEndName(String flowMapEndName) {
|
||||||
|
this.flowMapEndName = flowMapEndName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExtColor() {
|
||||||
|
return extColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtColor(String extColor) {
|
||||||
|
this.extColor = extColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomAttrMobile() {
|
||||||
|
return customAttrMobile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomAttrMobile(String customAttrMobile) {
|
||||||
|
this.customAttrMobile = customAttrMobile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomStyleMobile() {
|
||||||
|
return customStyleMobile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomStyleMobile(String customStyleMobile) {
|
||||||
|
this.customStyleMobile = customStyleMobile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSortPriority() {
|
||||||
|
return sortPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSortPriority(String sortPriority) {
|
||||||
|
this.sortPriority = sortPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CoreChartView{" +
|
||||||
|
"id = " + id +
|
||||||
|
", title = " + title +
|
||||||
|
", sceneId = " + sceneId +
|
||||||
|
", tableId = " + tableId +
|
||||||
|
", type = " + type +
|
||||||
|
", render = " + render +
|
||||||
|
", resultCount = " + resultCount +
|
||||||
|
", resultMode = " + resultMode +
|
||||||
|
", xAxis = " + xAxis +
|
||||||
|
", xAxisExt = " + xAxisExt +
|
||||||
|
", yAxis = " + yAxis +
|
||||||
|
", yAxisExt = " + yAxisExt +
|
||||||
|
", extStack = " + extStack +
|
||||||
|
", extBubble = " + extBubble +
|
||||||
|
", extLabel = " + extLabel +
|
||||||
|
", extTooltip = " + extTooltip +
|
||||||
|
", customAttr = " + customAttr +
|
||||||
|
", customStyle = " + customStyle +
|
||||||
|
", customFilter = " + customFilter +
|
||||||
|
", drillFields = " + drillFields +
|
||||||
|
", senior = " + senior +
|
||||||
|
", createBy = " + createBy +
|
||||||
|
", createTime = " + createTime +
|
||||||
|
", updateTime = " + updateTime +
|
||||||
|
", snapshot = " + snapshot +
|
||||||
|
", stylePriority = " + stylePriority +
|
||||||
|
", chartType = " + chartType +
|
||||||
|
", isPlugin = " + isPlugin +
|
||||||
|
", dataFrom = " + dataFrom +
|
||||||
|
", viewFields = " + viewFields +
|
||||||
|
", refreshViewEnable = " + refreshViewEnable +
|
||||||
|
", refreshUnit = " + refreshUnit +
|
||||||
|
", refreshTime = " + refreshTime +
|
||||||
|
", linkageActive = " + linkageActive +
|
||||||
|
", jumpActive = " + jumpActive +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
", aggregate = " + aggregate +
|
||||||
|
", flowMapStartName = " + flowMapStartName +
|
||||||
|
", flowMapEndName = " + flowMapEndName +
|
||||||
|
", extColor = " + extColor +
|
||||||
|
", customAttrMobile = " + customAttrMobile +
|
||||||
|
", customStyleMobile = " + customStyleMobile +
|
||||||
|
", sortPriority = " + sortPriority +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,263 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 数据集分组表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-08-28
|
||||||
|
*/
|
||||||
|
@TableName("core_dataset_group")
|
||||||
|
public class CoreDatasetGroup implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应用ID
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前分组处于第几级
|
||||||
|
*/
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* node类型:folder or dataset
|
||||||
|
*/
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sql,union
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表)
|
||||||
|
*/
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联关系树
|
||||||
|
*/
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Quartz 实例 ID
|
||||||
|
*/
|
||||||
|
private String qrtzInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步状态
|
||||||
|
*/
|
||||||
|
private String syncStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人ID
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后同步时间
|
||||||
|
*/
|
||||||
|
private Long lastUpdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联sql
|
||||||
|
*/
|
||||||
|
private String unionSql;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否跨源
|
||||||
|
*/
|
||||||
|
private Boolean isCross;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPid() {
|
||||||
|
return pid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPid(Long pid) {
|
||||||
|
this.pid = pid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getLevel() {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLevel(Integer level) {
|
||||||
|
this.level = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNodeType() {
|
||||||
|
return nodeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNodeType(String nodeType) {
|
||||||
|
this.nodeType = nodeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMode() {
|
||||||
|
return mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMode(Integer mode) {
|
||||||
|
this.mode = mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInfo() {
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInfo(String info) {
|
||||||
|
this.info = info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy() {
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy) {
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Long createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getQrtzInstance() {
|
||||||
|
return qrtzInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQrtzInstance(String qrtzInstance) {
|
||||||
|
this.qrtzInstance = qrtzInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSyncStatus() {
|
||||||
|
return syncStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSyncStatus(String syncStatus) {
|
||||||
|
this.syncStatus = syncStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy() {
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy) {
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getLastUpdateTime() {
|
||||||
|
return lastUpdateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastUpdateTime(Long lastUpdateTime) {
|
||||||
|
this.lastUpdateTime = lastUpdateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnionSql() {
|
||||||
|
return unionSql;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnionSql(String unionSql) {
|
||||||
|
this.unionSql = unionSql;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIsCross() {
|
||||||
|
return isCross;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsCross(Boolean isCross) {
|
||||||
|
this.isCross = isCross;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CoreDatasetGroup{" +
|
||||||
|
"id = " + id +
|
||||||
|
", appId = " + appId +
|
||||||
|
", name = " + name +
|
||||||
|
", pid = " + pid +
|
||||||
|
", level = " + level +
|
||||||
|
", nodeType = " + nodeType +
|
||||||
|
", type = " + type +
|
||||||
|
", mode = " + mode +
|
||||||
|
", info = " + info +
|
||||||
|
", createBy = " + createBy +
|
||||||
|
", createTime = " + createTime +
|
||||||
|
", qrtzInstance = " + qrtzInstance +
|
||||||
|
", syncStatus = " + syncStatus +
|
||||||
|
", updateBy = " + updateBy +
|
||||||
|
", lastUpdateTime = " + lastUpdateTime +
|
||||||
|
", unionSql = " + unionSql +
|
||||||
|
", isCross = " + isCross +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppId() {
|
||||||
|
return appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppId(String appId) {
|
||||||
|
this.appId = appId;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,151 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-04-14
|
||||||
|
*/
|
||||||
|
@TableName("core_dataset_table")
|
||||||
|
public class CoreDatasetTable implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目ID
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 物理表名
|
||||||
|
*/
|
||||||
|
private String tableName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
private Long datasetGroupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* db,sql,union,excel,api
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表原始信息,表名,sql等
|
||||||
|
*/
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SQL参数
|
||||||
|
*/
|
||||||
|
private String sqlVariableDetails;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTableName() {
|
||||||
|
return tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTableName(String tableName) {
|
||||||
|
this.tableName = tableName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDatasourceId() {
|
||||||
|
return datasourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatasourceId(Long datasourceId) {
|
||||||
|
this.datasourceId = datasourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDatasetGroupId() {
|
||||||
|
return datasetGroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatasetGroupId(Long datasetGroupId) {
|
||||||
|
this.datasetGroupId = datasetGroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInfo() {
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInfo(String info) {
|
||||||
|
this.info = info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSqlVariableDetails() {
|
||||||
|
return sqlVariableDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSqlVariableDetails(String sqlVariableDetails) {
|
||||||
|
this.sqlVariableDetails = sqlVariableDetails;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAppId() {
|
||||||
|
return appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppId(String appId) {
|
||||||
|
this.appId = appId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CoreDatasetTable{" +
|
||||||
|
"id = " + id +
|
||||||
|
"appId = " + appId +
|
||||||
|
", name = " + name +
|
||||||
|
", tableName = " + tableName +
|
||||||
|
", datasourceId = " + datasourceId +
|
||||||
|
", datasetGroupId = " + datasetGroupId +
|
||||||
|
", type = " + type +
|
||||||
|
", info = " + info +
|
||||||
|
", sqlVariableDetails = " + sqlVariableDetails +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,375 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* table数据集表字段
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2025-02-06
|
||||||
|
*/
|
||||||
|
@TableName("core_dataset_table_field")
|
||||||
|
public class CoreDatasetTableField implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据表ID
|
||||||
|
*/
|
||||||
|
private Long datasetTableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
private Long datasetGroupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 视图ID
|
||||||
|
*/
|
||||||
|
private Long chartId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段名
|
||||||
|
*/
|
||||||
|
private String originName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段名用于展示
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段名用作唯一标识
|
||||||
|
*/
|
||||||
|
private String gisbiName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de字段别名
|
||||||
|
*/
|
||||||
|
private String fieldShortName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组设置
|
||||||
|
*/
|
||||||
|
private String groupList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 未分组的值
|
||||||
|
*/
|
||||||
|
private String otherGroup;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 维度/指标标识 d:维度,q:指标
|
||||||
|
*/
|
||||||
|
private String groupType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段长度(允许为空,默认0)
|
||||||
|
*/
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gisbi字段类型:0-文本,1-时间,2-整型数值,3-浮点数值,4-布尔,5-地理位置,6-二进制
|
||||||
|
*/
|
||||||
|
private Integer deType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de记录的原始类型
|
||||||
|
*/
|
||||||
|
private Integer deExtractType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否扩展字段 0原始 1复制 2计算字段...
|
||||||
|
*/
|
||||||
|
private Integer extField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否选中
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列位置
|
||||||
|
*/
|
||||||
|
private Integer columnIndex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步时间
|
||||||
|
*/
|
||||||
|
private Long lastSyncTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 精度
|
||||||
|
*/
|
||||||
|
private Integer accuracy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时间字段类型
|
||||||
|
*/
|
||||||
|
private String dateFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时间格式类型
|
||||||
|
*/
|
||||||
|
private String dateFormatType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计算字段参数
|
||||||
|
*/
|
||||||
|
private String params;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDatasourceId() {
|
||||||
|
return datasourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatasourceId(Long datasourceId) {
|
||||||
|
this.datasourceId = datasourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDatasetTableId() {
|
||||||
|
return datasetTableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatasetTableId(Long datasetTableId) {
|
||||||
|
this.datasetTableId = datasetTableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDatasetGroupId() {
|
||||||
|
return datasetGroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDatasetGroupId(Long datasetGroupId) {
|
||||||
|
this.datasetGroupId = datasetGroupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getChartId() {
|
||||||
|
return chartId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChartId(Long chartId) {
|
||||||
|
this.chartId = chartId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOriginName() {
|
||||||
|
return originName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOriginName(String originName) {
|
||||||
|
this.originName = originName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGisbiName() {
|
||||||
|
return gisbiName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGisbiName(String gisbiName) {
|
||||||
|
this.gisbiName = gisbiName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFieldShortName() {
|
||||||
|
return fieldShortName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFieldShortName(String fieldShortName) {
|
||||||
|
this.fieldShortName = fieldShortName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupList() {
|
||||||
|
return groupList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupList(String groupList) {
|
||||||
|
this.groupList = groupList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOtherGroup() {
|
||||||
|
return otherGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOtherGroup(String otherGroup) {
|
||||||
|
this.otherGroup = otherGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupType() {
|
||||||
|
return groupType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupType(String groupType) {
|
||||||
|
this.groupType = groupType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDeType() {
|
||||||
|
return deType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeType(Integer deType) {
|
||||||
|
this.deType = deType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDeExtractType() {
|
||||||
|
return deExtractType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeExtractType(Integer deExtractType) {
|
||||||
|
this.deExtractType = deExtractType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getExtField() {
|
||||||
|
return extField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExtField(Integer extField) {
|
||||||
|
this.extField = extField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getChecked() {
|
||||||
|
return checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChecked(Boolean checked) {
|
||||||
|
this.checked = checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getColumnIndex() {
|
||||||
|
return columnIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setColumnIndex(Integer columnIndex) {
|
||||||
|
this.columnIndex = columnIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getLastSyncTime() {
|
||||||
|
return lastSyncTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLastSyncTime(Long lastSyncTime) {
|
||||||
|
this.lastSyncTime = lastSyncTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getAccuracy() {
|
||||||
|
return accuracy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAccuracy(Integer accuracy) {
|
||||||
|
this.accuracy = accuracy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateFormat() {
|
||||||
|
return dateFormat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateFormat(String dateFormat) {
|
||||||
|
this.dateFormat = dateFormat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateFormatType() {
|
||||||
|
return dateFormatType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateFormatType(String dateFormatType) {
|
||||||
|
this.dateFormatType = dateFormatType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParams() {
|
||||||
|
return params;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParams(String params) {
|
||||||
|
this.params = params;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CoreDatasetTableField{" +
|
||||||
|
"id = " + id +
|
||||||
|
", datasourceId = " + datasourceId +
|
||||||
|
", datasetTableId = " + datasetTableId +
|
||||||
|
", datasetGroupId = " + datasetGroupId +
|
||||||
|
", chartId = " + chartId +
|
||||||
|
", originName = " + originName +
|
||||||
|
", name = " + name +
|
||||||
|
", description = " + description +
|
||||||
|
", gisbiName = " + gisbiName +
|
||||||
|
", fieldShortName = " + fieldShortName +
|
||||||
|
", groupList = " + groupList +
|
||||||
|
", otherGroup = " + otherGroup +
|
||||||
|
", groupType = " + groupType +
|
||||||
|
", type = " + type +
|
||||||
|
", size = " + size +
|
||||||
|
", deType = " + deType +
|
||||||
|
", deExtractType = " + deExtractType +
|
||||||
|
", extField = " + extField +
|
||||||
|
", checked = " + checked +
|
||||||
|
", columnIndex = " + columnIndex +
|
||||||
|
", lastSyncTime = " + lastSyncTime +
|
||||||
|
", accuracy = " + accuracy +
|
||||||
|
", dateFormat = " + dateFormat +
|
||||||
|
", dateFormatType = " + dateFormatType +
|
||||||
|
", params = " + params +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,123 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-08-08
|
||||||
|
*/
|
||||||
|
@TableName("core_dataset_table_sql_log")
|
||||||
|
public class CoreDatasetTableSqlLog implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集SQL节点ID
|
||||||
|
*/
|
||||||
|
private String tableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始时间
|
||||||
|
*/
|
||||||
|
private Long startTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束时间
|
||||||
|
*/
|
||||||
|
private Long endTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 耗时(毫秒)
|
||||||
|
*/
|
||||||
|
private Long spend;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详细信息
|
||||||
|
*/
|
||||||
|
private String sql;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTableId() {
|
||||||
|
return tableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTableId(String tableId) {
|
||||||
|
this.tableId = tableId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getStartTime() {
|
||||||
|
return startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartTime(Long startTime) {
|
||||||
|
this.startTime = startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(Long endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSpend() {
|
||||||
|
return spend;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSpend(Long spend) {
|
||||||
|
this.spend = spend;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSql() {
|
||||||
|
return sql;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSql(String sql) {
|
||||||
|
this.sql = sql;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(String status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CoreDatasetTableSqlLog{" +
|
||||||
|
"id = " + id +
|
||||||
|
", tableId = " + tableId +
|
||||||
|
", startTime = " + startTime +
|
||||||
|
", endTime = " + endTime +
|
||||||
|
", spend = " + spend +
|
||||||
|
", sql = " + sql +
|
||||||
|
", status = " + status +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,153 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 外部参数配置表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2025-03-24
|
||||||
|
*/
|
||||||
|
@TableName("snapshot_visualization_outer_params_info")
|
||||||
|
public class SnapshotVisualizationOuterParamsInfo implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId("params_info_id")
|
||||||
|
private String paramsInfoId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* visualization_outer_params 表的 ID
|
||||||
|
*/
|
||||||
|
private String paramsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数名
|
||||||
|
*/
|
||||||
|
private String paramName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
private String copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源ID
|
||||||
|
*/
|
||||||
|
private String copyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 默认值 JSON格式
|
||||||
|
*/
|
||||||
|
private String defaultValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用默认值
|
||||||
|
*/
|
||||||
|
private Boolean enabledDefault;
|
||||||
|
|
||||||
|
public String getParamsInfoId() {
|
||||||
|
return paramsInfoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParamsInfoId(String paramsInfoId) {
|
||||||
|
this.paramsInfoId = paramsInfoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParamsId() {
|
||||||
|
return paramsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParamsId(String paramsId) {
|
||||||
|
this.paramsId = paramsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParamName() {
|
||||||
|
return paramName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParamName(String paramName) {
|
||||||
|
this.paramName = paramName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getChecked() {
|
||||||
|
return checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChecked(Boolean checked) {
|
||||||
|
this.checked = checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCopyFrom() {
|
||||||
|
return copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyFrom(String copyFrom) {
|
||||||
|
this.copyFrom = copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCopyId() {
|
||||||
|
return copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyId(String copyId) {
|
||||||
|
this.copyId = copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getRequired() {
|
||||||
|
return required;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRequired(Boolean required) {
|
||||||
|
this.required = required;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDefaultValue() {
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDefaultValue(String defaultValue) {
|
||||||
|
this.defaultValue = defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getEnabledDefault() {
|
||||||
|
return enabledDefault;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnabledDefault(Boolean enabledDefault) {
|
||||||
|
this.enabledDefault = enabledDefault;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "SnapshotVisualizationOuterParamsInfo{" +
|
||||||
|
"paramsInfoId = " + paramsInfoId +
|
||||||
|
", paramsId = " + paramsId +
|
||||||
|
", paramName = " + paramName +
|
||||||
|
", checked = " + checked +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
", required = " + required +
|
||||||
|
", defaultValue = " + defaultValue +
|
||||||
|
", enabledDefault = " + enabledDefault +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,161 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-09-22
|
||||||
|
*/
|
||||||
|
@TableName("visualization_linkage")
|
||||||
|
public class VisualizationLinkage implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private Long dvId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源图表id
|
||||||
|
*/
|
||||||
|
private Long sourceViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动图表id
|
||||||
|
*/
|
||||||
|
private Long targetViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updatePeople;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用关联
|
||||||
|
*/
|
||||||
|
private Boolean linkageActive;
|
||||||
|
|
||||||
|
private String ext1;
|
||||||
|
|
||||||
|
private String ext2;
|
||||||
|
|
||||||
|
private Long copyFrom;
|
||||||
|
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDvId() {
|
||||||
|
return dvId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDvId(Long dvId) {
|
||||||
|
this.dvId = dvId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSourceViewId() {
|
||||||
|
return sourceViewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceViewId(Long sourceViewId) {
|
||||||
|
this.sourceViewId = sourceViewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTargetViewId() {
|
||||||
|
return targetViewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTargetViewId(Long targetViewId) {
|
||||||
|
this.targetViewId = targetViewId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Long updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdatePeople() {
|
||||||
|
return updatePeople;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdatePeople(String updatePeople) {
|
||||||
|
this.updatePeople = updatePeople;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getLinkageActive() {
|
||||||
|
return linkageActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinkageActive(Boolean linkageActive) {
|
||||||
|
this.linkageActive = linkageActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExt1() {
|
||||||
|
return ext1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExt1(String ext1) {
|
||||||
|
this.ext1 = ext1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExt2() {
|
||||||
|
return ext2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExt2(String ext2) {
|
||||||
|
this.ext2 = ext2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyFrom() {
|
||||||
|
return copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyFrom(Long copyFrom) {
|
||||||
|
this.copyFrom = copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyId() {
|
||||||
|
return copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyId(Long copyId) {
|
||||||
|
this.copyId = copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationLinkage{" +
|
||||||
|
"id = " + id +
|
||||||
|
", dvId = " + dvId +
|
||||||
|
", sourceViewId = " + sourceViewId +
|
||||||
|
", targetViewId = " + targetViewId +
|
||||||
|
", updateTime = " + updateTime +
|
||||||
|
", updatePeople = " + updatePeople +
|
||||||
|
", linkageActive = " + linkageActive +
|
||||||
|
", ext1 = " + ext1 +
|
||||||
|
", ext2 = " + ext2 +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,114 @@
|
|||||||
|
package com.stdproject.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-09-22
|
||||||
|
*/
|
||||||
|
@TableName("visualization_linkage_field")
|
||||||
|
public class VisualizationLinkageField implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动ID
|
||||||
|
*/
|
||||||
|
private Long linkageId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源图表字段
|
||||||
|
*/
|
||||||
|
private Long sourceField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目标图表字段
|
||||||
|
*/
|
||||||
|
private Long targetField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
private Long copyFrom;
|
||||||
|
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getLinkageId() {
|
||||||
|
return linkageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinkageId(Long linkageId) {
|
||||||
|
this.linkageId = linkageId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSourceField() {
|
||||||
|
return sourceField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceField(Long sourceField) {
|
||||||
|
this.sourceField = sourceField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTargetField() {
|
||||||
|
return targetField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTargetField(Long targetField) {
|
||||||
|
this.targetField = targetField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUpdateTime() {
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Long updateTime) {
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyFrom() {
|
||||||
|
return copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyFrom(Long copyFrom) {
|
||||||
|
this.copyFrom = copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCopyId() {
|
||||||
|
return copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyId(Long copyId) {
|
||||||
|
this.copyId = copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationLinkageField{" +
|
||||||
|
"id = " + id +
|
||||||
|
", linkageId = " + linkageId +
|
||||||
|
", sourceField = " + sourceField +
|
||||||
|
", targetField = " + targetField +
|
||||||
|
", updateTime = " + updateTime +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class BaseTreeNodeDTO {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String pid;
|
||||||
|
|
||||||
|
private String text;
|
||||||
|
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
private List<BaseTreeNodeDTO> children;
|
||||||
|
|
||||||
|
public BaseTreeNodeDTO(String id, String pid, String text, String nodeType) {
|
||||||
|
this.id = id;
|
||||||
|
this.pid = pid;
|
||||||
|
this.text = text;
|
||||||
|
this.nodeType = nodeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import io.gisbi.constant.AuthEnum;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class BusiPerCheckDTO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -6047004531129863548L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private AuthEnum authEnum;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import io.gisbi.model.TreeBaseModel;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DataSetNodeBO implements TreeBaseModel {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 728340676442387790L;
|
||||||
|
private String appId;
|
||||||
|
private Long id;
|
||||||
|
private String name;
|
||||||
|
private Boolean leaf;
|
||||||
|
private Integer weight = 3;
|
||||||
|
private Long pid;
|
||||||
|
private Integer extraFlag;
|
||||||
|
}
|
@ -0,0 +1,71 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.stdproject.entity.vo.UserFormVO;
|
||||||
|
import io.gisbi.extensions.view.dto.DatasetRowPermissionsTreeObj;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class DataSetRowPermissionsTreeDTO {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用
|
||||||
|
*/
|
||||||
|
private Boolean enable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 权限类型:dept/role/user
|
||||||
|
*/
|
||||||
|
private String authTargetType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 权限对象ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long authTargetId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关系表达式
|
||||||
|
*/
|
||||||
|
private String expressionTree;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户白名单
|
||||||
|
*/
|
||||||
|
private String whiteListUser;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 角色白名单
|
||||||
|
*/
|
||||||
|
private String whiteListRole;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织白名单
|
||||||
|
*/
|
||||||
|
private String whiteListDept;
|
||||||
|
|
||||||
|
private Long updateTime;
|
||||||
|
private String datasetName;
|
||||||
|
|
||||||
|
private String authTargetName;
|
||||||
|
|
||||||
|
private DatasetRowPermissionsTreeObj tree;
|
||||||
|
private List<UserFormVO> whiteListUsers;
|
||||||
|
private List<Long> authTargetIds;
|
||||||
|
private boolean exportData;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Schema(description = "数据集结构")
|
||||||
|
@Data
|
||||||
|
public class DatasetNodeDTO implements Serializable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
@Schema(description = "父级目录ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前分组处于第几级
|
||||||
|
*/
|
||||||
|
@Schema(description = "层级")
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* node类型:folder or dataset
|
||||||
|
*/
|
||||||
|
@Schema(description = "叶子节点类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sql,union
|
||||||
|
*/
|
||||||
|
@Schema(description = "数据集类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表)
|
||||||
|
*/
|
||||||
|
@Schema(description = "连接模式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联关系树
|
||||||
|
*/
|
||||||
|
@Schema(description = "关联tree", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
@Schema(description = "创建人ID")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
private String qrtzInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步状态
|
||||||
|
*/
|
||||||
|
private String syncStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后同步时间
|
||||||
|
*/
|
||||||
|
private Long lastUpdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联sql,由tree
|
||||||
|
*/
|
||||||
|
private String unionSql;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class DeSortField extends DatasetTableFieldDTO {
|
||||||
|
|
||||||
|
private String orderDirection;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class LinkageInfoDTO {
|
||||||
|
|
||||||
|
private String sourceInfo;
|
||||||
|
|
||||||
|
private List<String> targetInfoList;
|
||||||
|
|
||||||
|
public String getSourceInfo() {
|
||||||
|
return sourceInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSourceInfo(String sourceInfo) {
|
||||||
|
this.sourceInfo = sourceInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getTargetInfoList() {
|
||||||
|
return targetInfoList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTargetInfoList(List<String> targetInfoList) {
|
||||||
|
this.targetInfoList = targetInfoList;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author Junjun
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PreviewSqlDTO {
|
||||||
|
private String tableId;
|
||||||
|
private String sql;
|
||||||
|
private Long datasourceId;
|
||||||
|
private String sqlVariableDetails;
|
||||||
|
private Boolean isCross;
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import io.gisbi.extensions.view.dto.ChartDimensionDTO;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartQuotaDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ScatterChartDataDTO {
|
||||||
|
private Object[] value;
|
||||||
|
private List<ChartDimensionDTO> dimensionList;
|
||||||
|
private List<ChartQuotaDTO> quotaList;
|
||||||
|
}
|
19
backend/src/main/java/com/stdproject/entity/dto/Series.java
Normal file
19
backend/src/main/java/com/stdproject/entity/dto/Series.java
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class Series {
|
||||||
|
private String name;
|
||||||
|
private String type;
|
||||||
|
private List<Object> data;
|
||||||
|
private Set<String> categories;
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationOutParamsJumpVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationViewTableVO;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2024/4/18 17:14
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class VisualizationComponentDTO {
|
||||||
|
|
||||||
|
private String bashComponentData;
|
||||||
|
|
||||||
|
List<VisualizationViewTableVO> visualizationViewTables;
|
||||||
|
|
||||||
|
List<VisualizationOutParamsJumpVO> outParamsJumpInfo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkJumpVO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 14:21
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpDTO extends VisualizationLinkJumpVO {
|
||||||
|
//仪表板可以跳转图表信息 sourceViewId#
|
||||||
|
private String sourceInfo;
|
||||||
|
|
||||||
|
private List<String> targetInfoList;
|
||||||
|
|
||||||
|
private List<VisualizationLinkJumpInfoDTO> linkJumpInfoArray = new ArrayList<>();
|
||||||
|
|
||||||
|
private Map<String,VisualizationLinkJumpInfoDTO> mapJumpInfoArray = new HashMap<>();
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkJumpInfoVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkJumpTargetViewInfoVO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 14:20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpInfoDTO extends VisualizationLinkJumpInfoVO {
|
||||||
|
private String sourceFieldName;
|
||||||
|
|
||||||
|
private String sourceJumpInfo;
|
||||||
|
|
||||||
|
private Integer sourceDeType;
|
||||||
|
|
||||||
|
//存在公共链接的目标仪表板
|
||||||
|
private String publicJumpId;
|
||||||
|
|
||||||
|
// 目标类型
|
||||||
|
private String targetDvType;
|
||||||
|
|
||||||
|
private List<VisualizationLinkJumpTargetViewInfoVO> targetViewInfoList=new ArrayList<>();// linkType = inner 时使用
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkageFieldVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkageVO;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkageDTO extends VisualizationLinkageVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目标图表名称
|
||||||
|
*/
|
||||||
|
private String targetViewName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目标图表类型
|
||||||
|
*/
|
||||||
|
private String targetViewType;
|
||||||
|
/**
|
||||||
|
* 联动字段
|
||||||
|
*/
|
||||||
|
private List<VisualizationLinkageFieldVO> linkageFields = new ArrayList<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目标图表字段
|
||||||
|
*/
|
||||||
|
private List<DatasetTableFieldDTO> targetViewFields = new ArrayList<>();
|
||||||
|
/**
|
||||||
|
* 表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsVO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsDTO extends VisualizationOuterParamsVO {
|
||||||
|
|
||||||
|
private List<String> targetInfoList;
|
||||||
|
|
||||||
|
private List<VisualizationOuterParamsInfoDTO> outerParamsInfoArray = new ArrayList<>();
|
||||||
|
|
||||||
|
private Map<String,VisualizationOuterParamsInfoDTO> mapOuterParamsInfoArray = new HashMap<>();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsDsInfoVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsFilterInfoVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsInfoVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsTargetViewInfoVO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsInfoDTO extends VisualizationOuterParamsInfoVO {
|
||||||
|
private String dvId;
|
||||||
|
|
||||||
|
private List<VisualizationOuterParamsTargetViewInfoVO> targetViewInfoList=new ArrayList<>();
|
||||||
|
|
||||||
|
//仪表板外部参数信息 dvId#paramName
|
||||||
|
private String sourceInfo;
|
||||||
|
|
||||||
|
//目标联动参数 targetViewId#targetFieldId
|
||||||
|
private List<String> targetInfoList;
|
||||||
|
|
||||||
|
private List<VisualizationOuterParamsDsInfoVO> dsInfoVOList = new ArrayList<>();
|
||||||
|
|
||||||
|
private List<VisualizationOuterParamsFilterInfoVO> filterInfoVOList = new ArrayList<>();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationOuterParamsTargetViewInfoVO;
|
||||||
|
|
||||||
|
public class VisualizationOuterParamsTargetViewInfoDTO extends VisualizationOuterParamsTargetViewInfoVO {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationTemplateExtendDataVO;
|
||||||
|
import io.gisbi.utils.IDUtils;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/11/13 10:25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationTemplateExtendDataDTO extends VisualizationTemplateExtendDataVO {
|
||||||
|
|
||||||
|
|
||||||
|
public VisualizationTemplateExtendDataDTO(Long dvId, Long viewId, String viewDetails) {
|
||||||
|
super();
|
||||||
|
super.setId(IDUtils.snowID());
|
||||||
|
super.setDvId(dvId);
|
||||||
|
super.setViewId(viewId);
|
||||||
|
super.setViewDetails(viewDetails);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.stdproject.entity.dto;
|
||||||
|
|
||||||
|
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2024/3/14 12:42
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationViewTableDTO extends ChartViewDTO {
|
||||||
|
|
||||||
|
private String visualizationId;
|
||||||
|
|
||||||
|
private String baseVisualizationData;
|
||||||
|
|
||||||
|
private List<DatasetTableFieldDTO> tableFields;
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.stdproject.entity.po;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ChartBasePO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 183064537525500481L;
|
||||||
|
|
||||||
|
private Long chartId;
|
||||||
|
|
||||||
|
private String chartType;
|
||||||
|
|
||||||
|
private String chartName;
|
||||||
|
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
private String resourceType;
|
||||||
|
|
||||||
|
private String resourceName;
|
||||||
|
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
private String xAxis;
|
||||||
|
|
||||||
|
|
||||||
|
private String xAxisExt;
|
||||||
|
|
||||||
|
|
||||||
|
private String yAxis;
|
||||||
|
|
||||||
|
|
||||||
|
private String yAxisExt;
|
||||||
|
|
||||||
|
|
||||||
|
private String extStack;
|
||||||
|
|
||||||
|
|
||||||
|
private String extBubble;
|
||||||
|
|
||||||
|
private String flowMapStartName;
|
||||||
|
|
||||||
|
private String flowMapEndName;
|
||||||
|
|
||||||
|
private String extColor;
|
||||||
|
|
||||||
|
private String extLabel;
|
||||||
|
|
||||||
|
private String extTooltip;
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.stdproject.entity.po;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DataSetNodePO implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -4457506330575500164L;
|
||||||
|
private String appId;
|
||||||
|
private Long id;
|
||||||
|
private String name;
|
||||||
|
private String nodeType;
|
||||||
|
private Long pid;
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.stdproject.entity.po;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationResourcePO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 627770173259978185L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Long creator;
|
||||||
|
|
||||||
|
private Long lastEditor;
|
||||||
|
|
||||||
|
private Long lastEditTime;
|
||||||
|
|
||||||
|
private Boolean favorite;
|
||||||
|
|
||||||
|
private int weight;
|
||||||
|
|
||||||
|
private Integer extFlag;
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.stdproject.entity.union;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.dto.DatasetNodeDTO;
|
||||||
|
import com.stdproject.entity.dto.DeSortField;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author Junjun
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class DatasetGroupInfoDTO extends DatasetNodeDTO {
|
||||||
|
private List<UnionDTO> union;// 关联数据集
|
||||||
|
|
||||||
|
private List<DeSortField> sortFields;// 自定义排序(如仪表板查询组件)
|
||||||
|
|
||||||
|
private Map<String, List> data;
|
||||||
|
|
||||||
|
private List<DatasetTableFieldDTO> allFields;
|
||||||
|
|
||||||
|
private String sql;
|
||||||
|
|
||||||
|
private String appId;
|
||||||
|
|
||||||
|
private Long total;
|
||||||
|
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
private String updater;
|
||||||
|
|
||||||
|
private Boolean isCross;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.stdproject.entity.union;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class DatasetTableInfoDTO implements Serializable {
|
||||||
|
private String table;
|
||||||
|
private String sql;
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.stdproject.entity.union;
|
||||||
|
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableDTO;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class UnionDTO implements Serializable {
|
||||||
|
private DatasetTableDTO currentDs;
|
||||||
|
private List<Long> currentDsField;
|
||||||
|
private List<DatasetTableFieldDTO> currentDsFields;
|
||||||
|
private List<UnionDTO> childrenDs;
|
||||||
|
private UnionParamDTO unionToParent;
|
||||||
|
private int allChildCount;
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.stdproject.entity.union;
|
||||||
|
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class UnionItemDTO implements Serializable {
|
||||||
|
private DatasetTableFieldDTO parentField;
|
||||||
|
private DatasetTableFieldDTO currentField;
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.stdproject.entity.union;
|
||||||
|
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableDTO;
|
||||||
|
import io.gisbi.extensions.datasource.model.SQLObj;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author gin
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class UnionParamDTO implements Serializable {
|
||||||
|
private String unionType;
|
||||||
|
private List<UnionItemDTO> unionFields;
|
||||||
|
private DatasetTableDTO parentDs;
|
||||||
|
private DatasetTableDTO currentDs;
|
||||||
|
private SQLObj parentSQLObj;
|
||||||
|
private SQLObj currentSQLObj;
|
||||||
|
}
|
@ -0,0 +1,208 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreChartViewVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 场景ID chart_type为private的时候 是仪表板id
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sceneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表渲染方式
|
||||||
|
*/
|
||||||
|
private String render;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 展示结果
|
||||||
|
*/
|
||||||
|
private Integer resultCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 展示模式
|
||||||
|
*/
|
||||||
|
private String resultMode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 横轴field
|
||||||
|
*/
|
||||||
|
private String xAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* table-row
|
||||||
|
*/
|
||||||
|
private String xAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纵轴field
|
||||||
|
*/
|
||||||
|
private String yAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 副轴
|
||||||
|
*/
|
||||||
|
private String yAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 堆叠项
|
||||||
|
*/
|
||||||
|
private String extStack;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气泡大小
|
||||||
|
*/
|
||||||
|
private String extBubble;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态标签
|
||||||
|
*/
|
||||||
|
private String extLabel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 动态提示
|
||||||
|
*/
|
||||||
|
private String extTooltip;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图形属性
|
||||||
|
*/
|
||||||
|
private String customAttr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件样式
|
||||||
|
*/
|
||||||
|
private String customStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果过滤
|
||||||
|
*/
|
||||||
|
private String customFilter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 钻取字段
|
||||||
|
*/
|
||||||
|
private String drillFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 高级
|
||||||
|
*/
|
||||||
|
private String senior;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缩略图
|
||||||
|
*/
|
||||||
|
private String snapshot;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 样式优先级 panel 仪表板 view 图表
|
||||||
|
*/
|
||||||
|
private String stylePriority;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表类型 public 公共 历史可复用的图表,private 私有 专属某个仪表板
|
||||||
|
*/
|
||||||
|
private String chartType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否插件
|
||||||
|
*/
|
||||||
|
private Boolean isPlugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据来源 template 模板数据 dataset 数据集数据
|
||||||
|
*/
|
||||||
|
private String dataFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表字段集合
|
||||||
|
*/
|
||||||
|
private String viewFields;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启刷新
|
||||||
|
*/
|
||||||
|
private Boolean refreshViewEnable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新时间单位
|
||||||
|
*/
|
||||||
|
private String refreshUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 刷新时间
|
||||||
|
*/
|
||||||
|
private Integer refreshTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启联动
|
||||||
|
*/
|
||||||
|
private Boolean linkageActive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启跳转
|
||||||
|
*/
|
||||||
|
private Boolean jumpActive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区间条形图开启时间纬度开启聚合
|
||||||
|
*/
|
||||||
|
private Boolean aggregate;
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreDatasetGroupVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前分组处于第几级
|
||||||
|
*/
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* node类型:folder or dataset
|
||||||
|
*/
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sql,union
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表)
|
||||||
|
*/
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联关系树
|
||||||
|
*/
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
private String qrtzInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步状态
|
||||||
|
*/
|
||||||
|
private String syncStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人ID
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后同步时间
|
||||||
|
*/
|
||||||
|
private Long lastUpdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联sql
|
||||||
|
*/
|
||||||
|
private String unionSql;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否跨源
|
||||||
|
*/
|
||||||
|
private Boolean isCross;
|
||||||
|
}
|
@ -0,0 +1,126 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreDatasetTableFieldVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetTableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetGroupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long chartId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段名
|
||||||
|
*/
|
||||||
|
private String originName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段名用于展示
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de字段名用作唯一标识
|
||||||
|
*/
|
||||||
|
private String gisbiName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de字段别名
|
||||||
|
*/
|
||||||
|
private String fieldShortName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 维度/指标标识 d:维度,q:指标
|
||||||
|
*/
|
||||||
|
private String groupType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gisbi字段类型:0-文本,1-时间,2-整型数值,3-浮点数值,4-布尔,5-地理位置,6-二进制
|
||||||
|
*/
|
||||||
|
private Integer deType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de记录的原始类型
|
||||||
|
*/
|
||||||
|
private Integer deExtractType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否扩展字段 0原始 1复制 2计算字段...
|
||||||
|
*/
|
||||||
|
private Integer extField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否选中
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列位置
|
||||||
|
*/
|
||||||
|
private Integer columnIndex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步时间
|
||||||
|
*/
|
||||||
|
private Long lastSyncTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 精度
|
||||||
|
*/
|
||||||
|
private Integer accuracy;
|
||||||
|
|
||||||
|
private String dateFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时间格式类型
|
||||||
|
*/
|
||||||
|
private String dateFormatType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* params
|
||||||
|
*/
|
||||||
|
private String params;
|
||||||
|
}
|
@ -0,0 +1,55 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreDatasetTableVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 物理表名
|
||||||
|
*/
|
||||||
|
private String tableName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetGroupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* db,sql,union,excel,api
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 表原始信息,表名,sql等
|
||||||
|
*/
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SQL参数
|
||||||
|
*/
|
||||||
|
private String sqlVariableDetails;
|
||||||
|
}
|
@ -0,0 +1,92 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreDatasourceTaskVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新方式
|
||||||
|
*/
|
||||||
|
private String updateType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开始时间
|
||||||
|
*/
|
||||||
|
private Long startTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 执行频率:0 一次性 1 cron
|
||||||
|
*/
|
||||||
|
private String syncRate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* cron表达式
|
||||||
|
*/
|
||||||
|
private String cron;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 简单重复间隔
|
||||||
|
*/
|
||||||
|
private Long simpleCronValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 简单重复类型:分、时、天
|
||||||
|
*/
|
||||||
|
private String simpleCronType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束限制 0 无限制 1 设定结束时间
|
||||||
|
*/
|
||||||
|
private String endLimit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结束时间
|
||||||
|
*/
|
||||||
|
private Long endTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上次执行时间
|
||||||
|
*/
|
||||||
|
private Long lastExecTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上次执行结果
|
||||||
|
*/
|
||||||
|
private String lastExecStatus;
|
||||||
|
|
||||||
|
private String extraData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
private String taskStatus;
|
||||||
|
}
|
@ -0,0 +1,91 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class AppCoreDatasourceVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新方式:0:替换;1:追加
|
||||||
|
*/
|
||||||
|
private String editType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详细信息
|
||||||
|
*/
|
||||||
|
private String configuration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变更人
|
||||||
|
*/
|
||||||
|
private Long updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private String qrtzInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
private String taskStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 映射系统数据源ID
|
||||||
|
*/
|
||||||
|
private Long systemDatasourceId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ChartBaseVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -2445689467486374464L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long chartId;
|
||||||
|
|
||||||
|
private String chartType;
|
||||||
|
|
||||||
|
private String chartName;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
private String resourceType;
|
||||||
|
|
||||||
|
private String resourceName;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
@JsonProperty("xAxis")
|
||||||
|
private List<ChartViewFieldDTO> xAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 横轴field ext
|
||||||
|
*/
|
||||||
|
@JsonProperty("xAxisExt")
|
||||||
|
private List<ChartViewFieldDTO> xAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纵轴field
|
||||||
|
*/
|
||||||
|
@JsonProperty("yAxis")
|
||||||
|
private List<ChartViewFieldDTO> yAxis;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 副轴
|
||||||
|
*/
|
||||||
|
@JsonProperty("yAxisExt")
|
||||||
|
private List<ChartViewFieldDTO> yAxisExt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 堆叠项
|
||||||
|
*/
|
||||||
|
private List<ChartViewFieldDTO> extStack;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气泡大小
|
||||||
|
*/
|
||||||
|
private List<ChartViewFieldDTO> extBubble;
|
||||||
|
|
||||||
|
private List<ChartViewFieldDTO> flowMapStartName;
|
||||||
|
|
||||||
|
private List<ChartViewFieldDTO> flowMapEndName;
|
||||||
|
|
||||||
|
private List<ChartViewFieldDTO> extColor;
|
||||||
|
|
||||||
|
private List<ChartViewFieldDTO> extLabel;
|
||||||
|
|
||||||
|
private List<ChartViewFieldDTO> extTooltip;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class CoreDatasetGroupVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前分组处于第几级
|
||||||
|
*/
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* node类型:folder or dataset
|
||||||
|
*/
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sql,union
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 连接模式:0-直连,1-同步(包括excel、api等数据存在de中的表)
|
||||||
|
*/
|
||||||
|
private Integer mode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联关系树
|
||||||
|
*/
|
||||||
|
private String info;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人ID
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
private String qrtzInstance;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步状态
|
||||||
|
*/
|
||||||
|
private String syncStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人ID
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后同步时间
|
||||||
|
*/
|
||||||
|
private Long lastUpdateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联sql
|
||||||
|
*/
|
||||||
|
private String unionSql;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否跨源
|
||||||
|
*/
|
||||||
|
private Boolean isCross;
|
||||||
|
|
||||||
|
private List<CoreDatasetTableFieldVO> datasetFields = new ArrayList<>();
|
||||||
|
|
||||||
|
private List<ChartBaseVO> datasetViews = new ArrayList<>();
|
||||||
|
}
|
@ -0,0 +1,132 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class CoreDatasetTableFieldVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetTableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long datasetGroupId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long chartId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段名
|
||||||
|
*/
|
||||||
|
private String originName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段名用于展示
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de字段名用作唯一标识
|
||||||
|
*/
|
||||||
|
private String gisbiName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de字段别名
|
||||||
|
*/
|
||||||
|
private String fieldShortName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 维度/指标标识 d:维度,q:指标
|
||||||
|
*/
|
||||||
|
private String groupType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 原始字段类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gisbi字段类型:0-文本,1-时间,2-整型数值,3-浮点数值,4-布尔,5-地理位置,6-二进制
|
||||||
|
*/
|
||||||
|
private Integer deType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* de记录的原始类型
|
||||||
|
*/
|
||||||
|
private Integer deExtractType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否扩展字段 0原始 1复制 2计算字段...
|
||||||
|
*/
|
||||||
|
private Integer extField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否选中
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列位置
|
||||||
|
*/
|
||||||
|
private Integer columnIndex;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 同步时间
|
||||||
|
*/
|
||||||
|
private Long lastSyncTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 精度
|
||||||
|
*/
|
||||||
|
private Integer accuracy;
|
||||||
|
|
||||||
|
private String dateFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 时间格式类型
|
||||||
|
*/
|
||||||
|
private String dateFormatType;
|
||||||
|
|
||||||
|
// 附加ID 兼容自定义参数ID
|
||||||
|
private String attachId;
|
||||||
|
|
||||||
|
public CoreDatasetTableFieldVO(String attachId, String name, Integer deType) {
|
||||||
|
this.attachId = attachId;
|
||||||
|
this.name = name;
|
||||||
|
this.deType = deType;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasourceDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class DataSetBarVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 7791029875759340927L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
private Long lastUpdateTime;
|
||||||
|
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
private String updater;
|
||||||
|
|
||||||
|
private List<DatasourceDTO> datasourceDTOList;
|
||||||
|
|
||||||
|
private Boolean isCross;
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.gisbi.model.ITreeBase;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class DataVisualizationBaseVO implements ITreeBase<DataVisualizationBaseVO> {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移动端布局
|
||||||
|
*/
|
||||||
|
private String mobileLayout;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
private List<DataVisualizationBaseVO> children;
|
||||||
|
}
|
@ -0,0 +1,211 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.stdproject.entity.dto.VisualizationTemplateExtendDataDTO;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewDTO;
|
||||||
|
import io.gisbi.utils.JsonUtil;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DataVisualizationVO implements Serializable {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 应用ID
|
||||||
|
*/
|
||||||
|
private String appId;
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父id
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属组织id
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long orgId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 层级
|
||||||
|
*/
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 节点类型 folder or panel 目录或者文件夹
|
||||||
|
*/
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 样式数据
|
||||||
|
*/
|
||||||
|
private String canvasStyleData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件数据
|
||||||
|
*/
|
||||||
|
private String componentData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移动端布局
|
||||||
|
*/
|
||||||
|
private Boolean mobileLayout;
|
||||||
|
/**
|
||||||
|
* 移动端布局
|
||||||
|
*/
|
||||||
|
private Integer extFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态 0-未发布 1-已发布
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否单独打开水印 0-关闭 1-开启
|
||||||
|
*/
|
||||||
|
private Boolean selfWatermarkStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
/**
|
||||||
|
* 创建人姓名
|
||||||
|
*/
|
||||||
|
private String creatorName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
/**
|
||||||
|
* 更新人姓名
|
||||||
|
*/
|
||||||
|
private String updateName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据来源
|
||||||
|
*/
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除标志
|
||||||
|
*/
|
||||||
|
private Boolean deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除时间
|
||||||
|
*/
|
||||||
|
private Long deleteTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除人
|
||||||
|
*/
|
||||||
|
private String deleteBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 可视化资源版本
|
||||||
|
*/
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容标识
|
||||||
|
*/
|
||||||
|
private String contentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容检查标识
|
||||||
|
*/
|
||||||
|
private String checkVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表基本信息
|
||||||
|
*/
|
||||||
|
private Map<Long, ChartViewDTO> canvasViewInfo = new HashMap<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表模板数据
|
||||||
|
*/
|
||||||
|
private Map<Long, VisualizationTemplateExtendDataDTO> extendDataInfo = new HashMap<>();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定时报告自定义过滤数据
|
||||||
|
*/
|
||||||
|
private Map<Long, VisualizationReportFilterVO> reportFilterInfo = new HashMap<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 水印信息
|
||||||
|
*/
|
||||||
|
private VisualizationWatermarkVO watermarkInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 权限信息
|
||||||
|
*/
|
||||||
|
private Integer weight;
|
||||||
|
|
||||||
|
private int ext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 应用信息
|
||||||
|
*/
|
||||||
|
private VisualizationExport2AppVO appData;
|
||||||
|
|
||||||
|
|
||||||
|
public DataVisualizationVO(Long id, String name, String type, Integer version, String canvasStyleData, String componentData, String appDataStr, Map<Long, ChartViewDTO> canvasViewInfo, Map<Long, VisualizationTemplateExtendDataDTO> extendDataInfo) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
this.type = type;
|
||||||
|
this.canvasStyleData = canvasStyleData;
|
||||||
|
this.componentData = componentData;
|
||||||
|
this.canvasViewInfo = canvasViewInfo;
|
||||||
|
this.extendDataInfo = extendDataInfo;
|
||||||
|
if(StringUtils.isNotEmpty(appDataStr)){
|
||||||
|
this.appData= JsonUtil.parseObject(appDataStr,VisualizationExport2AppVO.class);
|
||||||
|
}
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public DataVisualizationVO(Integer status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.dto.DatasetNodeDTO;
|
||||||
|
import io.gisbi.model.ITreeBase;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class DatasetTreeNodeVO extends DatasetNodeDTO implements Serializable, ITreeBase<DatasetTreeNodeVO> {
|
||||||
|
|
||||||
|
private List<DatasetTreeNodeVO> children;
|
||||||
|
|
||||||
|
private Boolean leaf;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Schema(description = "用户详情VO")
|
||||||
|
@Data
|
||||||
|
public class UserFormVO implements Serializable {
|
||||||
|
|
||||||
|
@Schema(description = "ID")
|
||||||
|
@JsonSerialize(using= ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "账号")
|
||||||
|
private String account;
|
||||||
|
|
||||||
|
@Schema(description = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "角色ID集合")
|
||||||
|
private List<String> roleIds;
|
||||||
|
|
||||||
|
@Schema(description = "邮箱")
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private Boolean enable;
|
||||||
|
|
||||||
|
@Schema(description = "电话前缀")
|
||||||
|
private String phonePrefix;
|
||||||
|
|
||||||
|
@Schema(description = "电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@Schema(description = "IP")
|
||||||
|
private String ip;
|
||||||
|
|
||||||
|
@Schema(description = "模式")
|
||||||
|
private String model;
|
||||||
|
|
||||||
|
@Schema(description = "MFA状态")
|
||||||
|
private Boolean mfaEnable = false;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ViewSelectorVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -7163837502596313691L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/6/12 19:27
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationBackgroundVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String classification;
|
||||||
|
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
private Long uploadTime;
|
||||||
|
|
||||||
|
private String baseUrl;
|
||||||
|
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationBaseInfoVO {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 移动端布局
|
||||||
|
*/
|
||||||
|
private String mobileLayout;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationExport2AppVO {
|
||||||
|
|
||||||
|
private Boolean checkStatus = false;
|
||||||
|
|
||||||
|
private String checkMes;
|
||||||
|
|
||||||
|
private String visualizationInfo;
|
||||||
|
|
||||||
|
private String visualizationViewsInfo;
|
||||||
|
|
||||||
|
List<AppCoreChartViewVO> chartViewsInfo;
|
||||||
|
|
||||||
|
List<AppCoreDatasetGroupVO> datasetGroupsInfo;
|
||||||
|
|
||||||
|
List<AppCoreDatasetTableVO> datasetTablesInfo;
|
||||||
|
|
||||||
|
List<AppCoreDatasetTableFieldVO> datasetTableFieldsInfo;
|
||||||
|
|
||||||
|
List<AppCoreDatasourceVO> datasourceInfo;
|
||||||
|
|
||||||
|
List<AppCoreDatasourceTaskVO> datasourceTaskInfo;
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpVO> linkJumps;
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpInfoVO> linkJumpInfos;
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpTargetViewInfoVO> linkJumpTargetInfos;
|
||||||
|
|
||||||
|
List<VisualizationLinkageVO> linkages;
|
||||||
|
|
||||||
|
List<VisualizationLinkageFieldVO> linkageFields;
|
||||||
|
|
||||||
|
public VisualizationExport2AppVO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisualizationExport2AppVO(String checkMes) {
|
||||||
|
this.checkMes = checkMes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisualizationExport2AppVO(List<AppCoreChartViewVO> chartViewVOInfo,
|
||||||
|
List<AppCoreDatasetGroupVO> datasetGroupVOInfo,
|
||||||
|
List<AppCoreDatasetTableVO> datasetTableVOInfo,
|
||||||
|
List<AppCoreDatasetTableFieldVO> datasetTableFieldVOInfo,
|
||||||
|
List<AppCoreDatasourceVO> datasourceVOInfo,
|
||||||
|
List<AppCoreDatasourceTaskVO> datasourceTaskVOInfo,
|
||||||
|
List<VisualizationLinkJumpVO> linkJumpVOInfo,
|
||||||
|
List<VisualizationLinkJumpInfoVO> linkJumpInfoVOInfo,
|
||||||
|
List<VisualizationLinkJumpTargetViewInfoVO> linkJumpTargetViewVOInfo,
|
||||||
|
List<VisualizationLinkageVO> linkagesVOInfo,
|
||||||
|
List<VisualizationLinkageFieldVO> linkageFieldVOInfo) {
|
||||||
|
this.checkStatus = true;
|
||||||
|
this.checkMes = "success";
|
||||||
|
this.chartViewsInfo = chartViewVOInfo != null ? chartViewVOInfo : new ArrayList<>();
|
||||||
|
this.datasetGroupsInfo = datasetGroupVOInfo != null ? datasetGroupVOInfo : new ArrayList<>();
|
||||||
|
this.datasetTablesInfo = datasetTableVOInfo != null ? datasetTableVOInfo : new ArrayList<>();
|
||||||
|
this.datasetTableFieldsInfo = datasetTableFieldVOInfo != null ? datasetTableFieldVOInfo : new ArrayList<>();
|
||||||
|
this.datasourceTaskInfo = datasourceTaskVOInfo != null ? datasourceTaskVOInfo : new ArrayList<>();
|
||||||
|
this.datasourceInfo = datasourceVOInfo != null ? datasourceVOInfo : new ArrayList<>();
|
||||||
|
this.linkJumps = linkJumpVOInfo != null ? linkJumpVOInfo : new ArrayList<>();
|
||||||
|
this.linkJumpInfos = linkJumpInfoVOInfo != null ? linkJumpInfoVOInfo : new ArrayList<>();
|
||||||
|
this.linkJumpTargetInfos = linkJumpTargetViewVOInfo != null ? linkJumpTargetViewVOInfo : new ArrayList<>();
|
||||||
|
this.linkages = linkagesVOInfo != null ? linkagesVOInfo : new ArrayList<>();
|
||||||
|
this.linkageFields = linkageFieldVOInfo != null ? linkageFieldVOInfo : new ArrayList<>();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 13:21
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpInfoVO {
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* link jump ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long linkJumpId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联类型 inner 内部仪表板,outer 外部链接
|
||||||
|
*/
|
||||||
|
private String linkType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 跳转类型 _blank 新开页面 _self 当前窗口
|
||||||
|
*/
|
||||||
|
private String jumpType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 窗口大小large middle small
|
||||||
|
*/
|
||||||
|
private String windowSize;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 关联仪表板ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetDvId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字段ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceFieldId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容 linkType = outer时使用
|
||||||
|
*/
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否可用
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否附加点击参数
|
||||||
|
*/
|
||||||
|
private Boolean attachParams;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 14:18
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpTargetViewInfoVO {
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long linkJumpInfoId;
|
||||||
|
/**
|
||||||
|
* 勾选字段设置的匹配字段,也可以不是勾选字段本身
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceFieldActiveId;
|
||||||
|
private String targetViewId;
|
||||||
|
private String targetFieldId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动目标类型 view 图表 filter 过滤组件 outParams 外部参数
|
||||||
|
*/
|
||||||
|
private String targetType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 外部参数名称 当targetType==outParams时 实时查询对应名称
|
||||||
|
*/
|
||||||
|
private String outerParamsName;
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 12:40
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpVO {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源仪表板ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceDvId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源图表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 跳转信息
|
||||||
|
*/
|
||||||
|
private String linkJumpInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long queryUid;
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkageFieldVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long linkageId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源图表字段
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目标图表字段
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,53 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkageVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dvId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 源图表id
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动图表id
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updatePeople;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用关联
|
||||||
|
*/
|
||||||
|
private Boolean linkageActive;
|
||||||
|
|
||||||
|
private String ext1;
|
||||||
|
|
||||||
|
private String ext2;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyFrom;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long copyId;
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationOutParamsJumpVO {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsDsInfoVO {
|
||||||
|
|
||||||
|
private String dsName;
|
||||||
|
|
||||||
|
private String dsId;
|
||||||
|
|
||||||
|
private List targetFieldInfo;
|
||||||
|
|
||||||
|
private Map<String,Boolean> viewCheckedInfo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsFilterInfoVO {
|
||||||
|
|
||||||
|
private String filterComponentId;
|
||||||
|
|
||||||
|
private String filterId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 外部参数配置表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author fit2cloud
|
||||||
|
* @since 2024-03-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsInfoVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String paramsInfoId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* visualization_outer_params 表的 ID
|
||||||
|
*/
|
||||||
|
private String paramsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参数名
|
||||||
|
*/
|
||||||
|
private String paramName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 默认值 JSON格式
|
||||||
|
*/
|
||||||
|
private String defaultValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用默认值
|
||||||
|
*/
|
||||||
|
private Boolean enabledDefault;
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
private String copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源ID
|
||||||
|
*/
|
||||||
|
private String copyId;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationOuterParamsInfo{" +
|
||||||
|
"paramsInfoId = " + paramsInfoId +
|
||||||
|
", paramsId = " + paramsId +
|
||||||
|
", paramName = " + paramName +
|
||||||
|
", checked = " + checked +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,54 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 外部参数联动视图字段信息表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author fit2cloud
|
||||||
|
* @since 2024-03-08
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationOuterParamsTargetViewInfoVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String targetId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* visualization_outer_params_info 表的 ID
|
||||||
|
*/
|
||||||
|
private String paramsInfoId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动视图ID
|
||||||
|
*/
|
||||||
|
private String targetViewId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动数据集id/联动过滤组件id
|
||||||
|
*/
|
||||||
|
private String targetDsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 联动字段ID
|
||||||
|
*/
|
||||||
|
private String targetFieldId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
private String copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源ID
|
||||||
|
*/
|
||||||
|
private String copyId;
|
||||||
|
}
|
@ -0,0 +1,119 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 外部参数关联关系表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author fit2cloud
|
||||||
|
* @since 2024-03-08
|
||||||
|
*/
|
||||||
|
public class VisualizationOuterParamsVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String paramsId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 可视化资源ID
|
||||||
|
*/
|
||||||
|
private String visualizationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否启用外部参数标识(1-是,0-否)
|
||||||
|
*/
|
||||||
|
private Boolean checked;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源
|
||||||
|
*/
|
||||||
|
private String copyFrom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 复制来源ID
|
||||||
|
*/
|
||||||
|
private String copyId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否必填
|
||||||
|
*/
|
||||||
|
private Boolean required;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 默认值 JSON格式
|
||||||
|
*/
|
||||||
|
private String defaultValue;
|
||||||
|
|
||||||
|
|
||||||
|
public String getParamsId() {
|
||||||
|
return paramsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParamsId(String paramsId) {
|
||||||
|
this.paramsId = paramsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVisualizationId() {
|
||||||
|
return visualizationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVisualizationId(String visualizationId) {
|
||||||
|
this.visualizationId = visualizationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getChecked() {
|
||||||
|
return checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChecked(Boolean checked) {
|
||||||
|
this.checked = checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCopyFrom() {
|
||||||
|
return copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyFrom(String copyFrom) {
|
||||||
|
this.copyFrom = copyFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCopyId() {
|
||||||
|
return copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCopyId(String copyId) {
|
||||||
|
this.copyId = copyId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationOuterParams{" +
|
||||||
|
"paramsId = " + paramsId +
|
||||||
|
", visualizationId = " + visualizationId +
|
||||||
|
", checked = " + checked +
|
||||||
|
", required = " + required +
|
||||||
|
", defaultValue = " + defaultValue +
|
||||||
|
", remark = " + remark +
|
||||||
|
", copyFrom = " + copyFrom +
|
||||||
|
", copyId = " + copyId +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,175 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author fit2cloud
|
||||||
|
* @since 2024-06-25
|
||||||
|
*/
|
||||||
|
public class VisualizationReportFilterVO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定时报告id
|
||||||
|
*/
|
||||||
|
private Long reportId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务id
|
||||||
|
*/
|
||||||
|
private Long taskId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资源id
|
||||||
|
*/
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资源类型
|
||||||
|
*/
|
||||||
|
private String dvType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件id
|
||||||
|
*/
|
||||||
|
private Long componentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过滤项id
|
||||||
|
*/
|
||||||
|
private Long filterId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过滤组件内容
|
||||||
|
*/
|
||||||
|
private String filterInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过滤组件版本
|
||||||
|
*/
|
||||||
|
private Integer filterVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createUser;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getReportId() {
|
||||||
|
return reportId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReportId(Long reportId) {
|
||||||
|
this.reportId = reportId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskId(Long taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getResourceId() {
|
||||||
|
return resourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceId(Long resourceId) {
|
||||||
|
this.resourceId = resourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDvType() {
|
||||||
|
return dvType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDvType(String dvType) {
|
||||||
|
this.dvType = dvType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getComponentId() {
|
||||||
|
return componentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComponentId(Long componentId) {
|
||||||
|
this.componentId = componentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getFilterId() {
|
||||||
|
return filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilterId(Long filterId) {
|
||||||
|
this.filterId = filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFilterInfo() {
|
||||||
|
return filterInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilterInfo(String filterInfo) {
|
||||||
|
this.filterInfo = filterInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFilterVersion() {
|
||||||
|
return filterVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilterVersion(Integer filterVersion) {
|
||||||
|
this.filterVersion = filterVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Long createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateUser() {
|
||||||
|
return createUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateUser(String createUser) {
|
||||||
|
this.createUser = createUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationReportFilter{" +
|
||||||
|
"id = " + id +
|
||||||
|
", reportId = " + reportId +
|
||||||
|
", taskId = " + taskId +
|
||||||
|
", resourceId = " + resourceId +
|
||||||
|
", dvType = " + dvType +
|
||||||
|
", componentId = " + componentId +
|
||||||
|
", filterId = " + filterId +
|
||||||
|
", filterInfo = " + filterInfo +
|
||||||
|
", filterVersion = " + filterVersion +
|
||||||
|
", createTime = " + createTime +
|
||||||
|
", createUser = " + createUser +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationResourceVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 627770173259978185L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
private String lastEditor;
|
||||||
|
|
||||||
|
private Long lastEditTime;
|
||||||
|
|
||||||
|
private Boolean favorite;
|
||||||
|
|
||||||
|
private int weight;
|
||||||
|
|
||||||
|
private Integer extFlag;
|
||||||
|
}
|
@ -0,0 +1,41 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationStoreVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 627770173259978185L;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long resourceId;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private String creator;
|
||||||
|
|
||||||
|
private String lastEditor;
|
||||||
|
|
||||||
|
private Long lastEditTime;
|
||||||
|
|
||||||
|
private int weight;
|
||||||
|
|
||||||
|
private Integer extFlag;
|
||||||
|
|
||||||
|
private Integer extFlag1;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : wangjiahao
|
||||||
|
* @date : 2023/6/9 14:57
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationSubjectVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主题名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主题类型 system 系统主题,self 自定义主题
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
private Integer createNum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主题内容
|
||||||
|
*/
|
||||||
|
private String details;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 封面
|
||||||
|
*/
|
||||||
|
private String coverUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除标记
|
||||||
|
*/
|
||||||
|
private Boolean deleteFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
private Long updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新人
|
||||||
|
*/
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除时间
|
||||||
|
*/
|
||||||
|
private Long deleteTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除人
|
||||||
|
*/
|
||||||
|
private Long deleteBy;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/11/13 10:25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationTemplateExtendDataVO {
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dvId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long viewId;
|
||||||
|
|
||||||
|
private String viewDetails;
|
||||||
|
|
||||||
|
private String copyFrom;
|
||||||
|
|
||||||
|
private String copyId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/11/7 13:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationTemplateVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 父级id
|
||||||
|
*/
|
||||||
|
private String pid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 层级
|
||||||
|
*/
|
||||||
|
private Integer level;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板种类 dataV or dashboard 目录或者文件夹
|
||||||
|
*/
|
||||||
|
private String dvType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 节点类型 folder or panel 目录或者文件夹
|
||||||
|
*/
|
||||||
|
private String nodeType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缩略图
|
||||||
|
*/
|
||||||
|
private String snapshot;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板类型 system 系统内置 self 用户自建
|
||||||
|
*/
|
||||||
|
private String templateType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* template 样式
|
||||||
|
*/
|
||||||
|
private String templateStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* template 数据
|
||||||
|
*/
|
||||||
|
private String templateData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预存数据
|
||||||
|
*/
|
||||||
|
private String dynamicData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* app数据
|
||||||
|
*/
|
||||||
|
private String appData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 使用次数
|
||||||
|
*/
|
||||||
|
private Integer useCount;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 版本号
|
||||||
|
*/
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分类
|
||||||
|
*/
|
||||||
|
private List<String> categories;
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/19
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationViewTableVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dvId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据集表ID
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long tableId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表类型
|
||||||
|
*/
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图表渲染方式
|
||||||
|
*/
|
||||||
|
private String render;
|
||||||
|
|
||||||
|
|
||||||
|
private List<DatasetTableFieldDTO> tableFields;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
package com.stdproject.entity.vo;
|
||||||
|
|
||||||
|
public class VisualizationWatermarkVO{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 版本号
|
||||||
|
*/
|
||||||
|
private String version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置内容
|
||||||
|
*/
|
||||||
|
private String settingContent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Long createTime;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSettingContent() {
|
||||||
|
return settingContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSettingContent(String settingContent) {
|
||||||
|
this.settingContent = settingContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy() {
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy) {
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateTime() {
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Long createTime) {
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "VisualizationWatermark{" +
|
||||||
|
"id = " + id +
|
||||||
|
", version = " + version +
|
||||||
|
", settingContent = " + settingContent +
|
||||||
|
", createBy = " + createBy +
|
||||||
|
", createTime = " + createTime +
|
||||||
|
"}";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.po.DataSetNodePO;
|
||||||
|
import com.stdproject.entity.vo.DataSetBarVO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface CoreDataSetExtMapper {
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select id, name, node_type, pid,app_id from core_dataset_group
|
||||||
|
${ew.customSqlSegment}
|
||||||
|
""")
|
||||||
|
List<DataSetNodePO> query(@Param("ew") QueryWrapper queryWrapper);
|
||||||
|
|
||||||
|
@Select("select id, name, node_type, create_by, create_time, update_by, last_update_time, is_cross from core_dataset_group where id = #{id}")
|
||||||
|
DataSetBarVO queryBarInfo(@Param("id") Long id);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.CoreDatasetGroup;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-08-28
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CoreDatasetGroupMapper extends BaseMapper<CoreDatasetGroup> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.CoreDatasetTableField;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* table数据集表字段 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2025-02-06
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CoreDatasetTableFieldMapper extends BaseMapper<CoreDatasetTableField> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.CoreDatasetTable;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-04-14
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CoreDatasetTableMapper extends BaseMapper<CoreDatasetTable> {
|
||||||
|
@Select("select b.name group_name,a.table_name table_name,a.id table_id,a.datasource_id datasource_id from core_dataset_table a join core_dataset_group b on (a.dataset_group_id=b.id) where b.app_id=#{appid} and a.type='db' order by a.name")
|
||||||
|
List<Map<String,Object>> getTablesByAppId(String appid);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.CoreDatasetTableSqlLog;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @Author bi-coder
|
||||||
|
* @since 2023-08-08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CoreDatasetTableSqlLogMapper extends BaseMapper<CoreDatasetTableSqlLog> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.CoreChartView;
|
||||||
|
import com.stdproject.entity.po.ChartBasePO;
|
||||||
|
import com.stdproject.entity.vo.ViewSelectorVO;
|
||||||
|
import io.gisbi.extensions.view.dto.ChartViewDTO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface ExtChartViewMapper {
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
select id, scene_id as pid, title, type from core_chart_view where type != 'VQuery' and scene_id = #{resourceId}
|
||||||
|
""")
|
||||||
|
List<ViewSelectorVO> queryViewOption(@Param("resourceId") Long resourceId);
|
||||||
|
|
||||||
|
ChartBasePO queryChart(@Param("id") Long id, @Param("resourceTable")String resourceTable);
|
||||||
|
|
||||||
|
List<CoreChartView> selectListCustom(@Param("sceneId") Long sceneId, @Param("resourceTable") String resourceTable);
|
||||||
|
|
||||||
|
void deleteViewsBySceneId(@Param("sceneId") Long sceneId, @Param("resourceTable") String resourceTable);
|
||||||
|
|
||||||
|
@Select("""
|
||||||
|
SELECT id, scene_id as pid, title, type FROM (
|
||||||
|
SELECT id, scene_id, title, type FROM core_chart_view
|
||||||
|
WHERE id = #{viewId}
|
||||||
|
UNION ALL
|
||||||
|
SELECT id, scene_id, title, type FROM snapshot_core_chart_view
|
||||||
|
WHERE id = #{viewId}
|
||||||
|
) combined_views
|
||||||
|
LIMIT 1
|
||||||
|
""")
|
||||||
|
ChartViewDTO findChartViewAround(@Param("viewId") String viewId);
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.stdproject.entity.CoreChartView;
|
||||||
|
import com.stdproject.entity.dto.VisualizationViewTableDTO;
|
||||||
|
import com.stdproject.entity.po.VisualizationResourcePO;
|
||||||
|
import com.stdproject.entity.vo.DataVisualizationBaseVO;
|
||||||
|
import com.stdproject.entity.vo.DataVisualizationVO;
|
||||||
|
import com.stdproject.entity.vo.UserFormVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationReportFilterVO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface ExtDataVisualizationMapper {
|
||||||
|
DataVisualizationVO findDvInfo(@Param("dvId") Long dvId, @Param("dvType") String dvType, @Param("resourceTable") String resourceTable);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.dto.VisualizationLinkJumpDTO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkJumpInfoVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkJumpVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationOutParamsJumpVO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationViewTableVO;
|
||||||
|
import com.stdproject.request.VisualizationLinkJumpBaseRequest;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
@Mapper
|
||||||
|
public interface ExtVisualizationLinkJumpMapper {
|
||||||
|
List<VisualizationLinkJumpDTO> queryWithDvId(@Param("dvId") Long dvId, @Param("uid") Long uid, @Param("isDesktop") Boolean isDesktop);
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpDTO> queryWithDvIdSnapshot(@Param("dvId") Long dvId,@Param("uid") Long uid,@Param("isDesktop") Boolean isDesktop);
|
||||||
|
|
||||||
|
VisualizationLinkJumpDTO queryWithViewId(@Param("dvId") Long dvId,@Param("viewId") Long viewId,@Param("uid") Long uid,@Param("isDesktop") Boolean isDesktop);
|
||||||
|
|
||||||
|
void deleteJumpTargetViewInfoSnapshot(@Param("dvId") Long dvId,@Param("viewId") Long viewId);
|
||||||
|
|
||||||
|
void deleteJumpInfoSnapshot(@Param("dvId") Long dvId,@Param("viewId") Long viewId);
|
||||||
|
|
||||||
|
void deleteJumpSnapshot(@Param("dvId") Long dvId,@Param("viewId") Long viewId);
|
||||||
|
|
||||||
|
void deleteJumpTargetViewInfoWithVisualization(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
void deleteJumpInfoWithVisualization(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
void deleteJumpWithVisualization(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
void deleteJumpTargetViewInfoWithVisualizationSnapshot(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
void deleteJumpInfoWithVisualizationSnapshot(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
void deleteJumpWithVisualizationSnapshot(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpDTO> getTargetVisualizationJumpInfo(@Param("request") VisualizationLinkJumpBaseRequest request);
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpDTO> getTargetVisualizationJumpInfoSnapshot(@Param("request") VisualizationLinkJumpBaseRequest request);
|
||||||
|
|
||||||
|
void copyLinkJump(@Param("copyId")Long copyId);
|
||||||
|
|
||||||
|
void copyLinkJumpInfo(@Param("copyId")Long copyId);
|
||||||
|
|
||||||
|
void copyLinkJumpTarget(@Param("copyId")Long copyId);
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpVO> findLinkJumpWithDvId(@Param("dvId")Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationLinkJumpInfoVO> findLinkJumpInfoWithDvId(@Param("dvId")Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationViewTableVO> getViewTableDetails(@Param("dvId")Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationOutParamsJumpVO> queryOutParamsTargetWithDvId(@Param("dvId")Long dvId);
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
import com.stdproject.entity.VisualizationLinkage;
|
||||||
|
import com.stdproject.entity.VisualizationLinkageField;
|
||||||
|
import com.stdproject.entity.dto.LinkageInfoDTO;
|
||||||
|
import com.stdproject.entity.dto.VisualizationLinkageDTO;
|
||||||
|
import io.gisbi.extensions.datasource.dto.DatasetTableFieldDTO;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface ExtVisualizationLinkageMapper {
|
||||||
|
|
||||||
|
List<VisualizationLinkageDTO> getViewLinkageGather(@Param("dvId") Long dvId, @Param("sourceViewId") Long sourceViewId, @Param("targetViewIds") List<String> targetViewIds);
|
||||||
|
|
||||||
|
List<LinkageInfoDTO> getPanelAllLinkageInfo(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationLinkageDTO> getViewLinkageGatherSnapshot(@Param("dvId") Long dvId, @Param("sourceViewId") Long sourceViewId, @Param("targetViewIds") List<String> targetViewIds);
|
||||||
|
|
||||||
|
List<LinkageInfoDTO> getPanelAllLinkageInfoSnapshot(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
List<DatasetTableFieldDTO> queryTableField(@Param("table_id") Long tableId);
|
||||||
|
|
||||||
|
List<DatasetTableFieldDTO> queryTableFieldWithViewId(@Param("viewId") Long viewId);
|
||||||
|
|
||||||
|
void deleteViewLinkage(@Param("dvId") Long dvId,@Param("sourceViewId") Long sourceViewId);
|
||||||
|
|
||||||
|
void deleteViewLinkageField(@Param("dvId") Long dvId,@Param("sourceViewId") Long sourceViewId);
|
||||||
|
|
||||||
|
void deleteViewLinkageSnapshot(@Param("dvId") Long dvId,@Param("sourceViewId") Long sourceViewId);
|
||||||
|
|
||||||
|
void deleteViewLinkageFieldSnapshot(@Param("dvId") Long dvId,@Param("sourceViewId") Long sourceViewId);
|
||||||
|
|
||||||
|
void copyViewLinkage(@Param("copyId") Long copyId);
|
||||||
|
|
||||||
|
void copyViewLinkageField(@Param("copyId") Long copyId);
|
||||||
|
|
||||||
|
List<VisualizationLinkage> findLinkageWithDvId(@Param("dvId") Long dvId);
|
||||||
|
|
||||||
|
List<VisualizationLinkageField> findLinkageFieldWithDvId(@Param("dvId") Long dvId);
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package com.stdproject.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.SnapshotVisualizationOuterParamsInfo;
|
||||||
|
import com.stdproject.entity.dto.VisualizationOuterParamsDTO;
|
||||||
|
import com.stdproject.entity.dto.VisualizationOuterParamsInfoDTO;
|
||||||
|
import com.stdproject.entity.vo.CoreDatasetGroupVO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface ExtVisualizationOuterParamsMapper {
|
||||||
|
|
||||||
|
VisualizationOuterParamsDTO queryWithVisualizationIdSnapshot(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsTargetWithVisualizationId(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsInfoWithVisualizationId(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsWithVisualizationId(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsTargetWithVisualizationIdSnapshot(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsInfoWithVisualizationIdSnapshot(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
void deleteOuterParamsWithVisualizationIdSnapshot(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
List<VisualizationOuterParamsInfoDTO> getVisualizationOuterParamsInfo(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
List<SnapshotVisualizationOuterParamsInfo> getVisualizationOuterParamsInfoBase(@Param("visualizationId") String visualizationId);
|
||||||
|
|
||||||
|
List<CoreDatasetGroupVO> queryDsWithVisualizationId(@Param("visualizationId") String visualizationId);
|
||||||
|
}
|
@ -0,0 +1,78 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.DataVisualizationVO;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class DataVisualizationBaseRequest extends DataVisualizationVO {
|
||||||
|
|
||||||
|
private String opt;
|
||||||
|
|
||||||
|
private String resourceName;
|
||||||
|
|
||||||
|
private Boolean moveFromUpdate = false;
|
||||||
|
|
||||||
|
private String optType;
|
||||||
|
|
||||||
|
private String newFrom;
|
||||||
|
|
||||||
|
private String dynamicData;
|
||||||
|
|
||||||
|
private String templateId;
|
||||||
|
|
||||||
|
private String staticResource;
|
||||||
|
|
||||||
|
private String templateUrl;
|
||||||
|
|
||||||
|
private String busiFlag;
|
||||||
|
|
||||||
|
private List<Long> activeViewIds;
|
||||||
|
|
||||||
|
// 查询来源 main-edit= 主工程编辑区 main=主工程 report=定时报告
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
// 定时报告id
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long reportId;
|
||||||
|
|
||||||
|
// 定时报告任务id
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long taskId;
|
||||||
|
|
||||||
|
private Boolean showWatermark;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
// 数据集分组PID
|
||||||
|
private Long datasetFolderPid;
|
||||||
|
|
||||||
|
// 数据集分组名称
|
||||||
|
private String datasetFolderName;
|
||||||
|
|
||||||
|
//新赋值的content_id
|
||||||
|
private String newContentId;
|
||||||
|
|
||||||
|
// 是否强制校验新旧contentId
|
||||||
|
private Boolean checkHistory = false;
|
||||||
|
|
||||||
|
//数据来源 core 主表 snapshot 镜像表
|
||||||
|
private String resourceTable = "core";
|
||||||
|
|
||||||
|
public DataVisualizationBaseRequest(Long id,String busiFlag,String resource,String source) {
|
||||||
|
this.busiFlag = busiFlag;
|
||||||
|
this.resourceTable = resource;
|
||||||
|
super.setId(id);
|
||||||
|
this.setSource(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DataVisualizationBaseRequest(Long id,String busiFlag) {
|
||||||
|
this.busiFlag = busiFlag;
|
||||||
|
super.setId(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class StaticResourceRequest {
|
||||||
|
private List<String> resourcePathList;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class VisualizationAppExportRequest {
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dvId;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private List<Long> viewIds;
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private List<Long> dsIds;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationBackgroundVO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/6/12 19:28
|
||||||
|
*/
|
||||||
|
public class VisualizationBackgroundRequest extends VisualizationBackgroundVO {
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import io.gisbi.constant.CommonConstants;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 14:26
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpBaseRequest {
|
||||||
|
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceDvId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceViewId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceFieldId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetDvId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long targetViewId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long linkJumpId;
|
||||||
|
|
||||||
|
private Boolean activeStatus;
|
||||||
|
|
||||||
|
private String resourceTable = CommonConstants.RESOURCE_TABLE.CORE;
|
||||||
|
|
||||||
|
public VisualizationLinkJumpBaseRequest() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisualizationLinkJumpBaseRequest(Long sourceDvId, Long sourceViewId, Long targetDvId, Long targetViewId, Long linkJumpId) {
|
||||||
|
this.sourceDvId = sourceDvId;
|
||||||
|
this.sourceViewId = sourceViewId;
|
||||||
|
this.targetDvId = targetDvId;
|
||||||
|
this.targetViewId = targetViewId;
|
||||||
|
this.linkJumpId = linkJumpId;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.stdproject.entity.dto.VisualizationLinkageDTO;
|
||||||
|
import com.stdproject.entity.vo.VisualizationLinkageVO;
|
||||||
|
import io.gisbi.constant.CommonConstants;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkageRequest extends VisualizationLinkageVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仪表板 or 大屏ID
|
||||||
|
* */
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long dvId;
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long sourceViewId;
|
||||||
|
|
||||||
|
private Boolean ActiveStatus;
|
||||||
|
|
||||||
|
private List<String> targetViewIds;
|
||||||
|
|
||||||
|
private String resourceTable = CommonConstants.RESOURCE_TABLE.CORE;
|
||||||
|
|
||||||
|
private List<VisualizationLinkageDTO> linkageInfo = new ArrayList<>();
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationStoreRequest implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 166667337997303748L;
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String type;
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationSubjectVO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/6/9 14:59
|
||||||
|
*/
|
||||||
|
public class VisualizationSubjectRequest extends VisualizationSubjectVO {
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.vo.VisualizationWatermarkVO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2024/1/10 17:02
|
||||||
|
*/
|
||||||
|
public class VisualizationWatermarkRequest extends VisualizationWatermarkVO {
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.stdproject.request;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@Schema(description = "分享列表过滤器")
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class VisualizationWorkbranchQueryRequest implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -3522243514336261778L;
|
||||||
|
|
||||||
|
@Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private String type;
|
||||||
|
@Schema(description = "关键字")
|
||||||
|
private String keyword;
|
||||||
|
@Schema(description = "查询来源")
|
||||||
|
private String queryFrom;
|
||||||
|
@Schema(description = "是否升序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private boolean asc = false;
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package com.stdproject.response;
|
||||||
|
|
||||||
|
|
||||||
|
import com.stdproject.entity.dto.VisualizationLinkJumpInfoDTO;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : WangJiaHao
|
||||||
|
* @date : 2023/7/18 14:24
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class VisualizationLinkJumpBaseResponse {
|
||||||
|
|
||||||
|
// 获取基础的所有映射
|
||||||
|
private Map<String, VisualizationLinkJumpInfoDTO> baseJumpInfoMap;
|
||||||
|
|
||||||
|
// 获取仪表板类型映射
|
||||||
|
private Map<String, List<String>> baseJumpInfoVisualizationMap;
|
||||||
|
|
||||||
|
|
||||||
|
public VisualizationLinkJumpBaseResponse(Map<String, VisualizationLinkJumpInfoDTO> baseJumpInfoMap, Map<String, List<String>> baseJumpInfoVisualizationMap) {
|
||||||
|
this.baseJumpInfoMap = baseJumpInfoMap;
|
||||||
|
this.baseJumpInfoVisualizationMap = baseJumpInfoVisualizationMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VisualizationLinkJumpBaseResponse() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user