123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- package cn.cslg.pas.domain.business;
- import cn.cslg.pas.common.dto.customAnalyse.CustomSettingConfigDTO;
- import cn.cslg.pas.domain.BaseEntity;
- import com.baomidou.mybatisplus.annotation.FieldFill;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import lombok.Data;
- import org.springframework.format.annotation.DateTimeFormat;
- import java.util.Date;
- /**
- * 自定义分析项目图表设置
- *
- * @Author zero
- * @Date 2024/01/15
- */
- @Data
- @TableName("os_custom_analysis_item_setting")
- public class CustomAnalysisItemSetting extends BaseEntity<CustomAnalysisItemSetting> {
- public CustomAnalysisItemSetting() {
- this.type = 1;
- this.showType = 0;
- this.tableType = 0;
- this.theme = "customed";
- this.titleSize = 14;
- this.dataSize = 14;
- this.axisSize = 14;
- this.dataLabel = false;
- this.dataLabel2 = false;
- this.dataLabel3 = false;
- this.title1Dir = 0;
- this.title1 = "";
- this.title2 = "";
- this.dataPosition = "top";
- this.fontFamily = "sans-serif";
- this.fontFamily2 = "sans-serif";
- this.fontFamily3 = "sans-serif";
- this.fontFamily4 = "sans-serif";
- this.fontWeight = false;
- this.fontWeight2 = false;
- this.nameLocation = "end";
- this.nameLocation2 = "end";
- this.width = "100";
- this.height = "650";
- this.widthUnit = "%";
- this.heightUnit = "px";
- this.splitLine = false;
- this.splitLine2 = false;
- this.legend = true;
- this.gridTop = "0";
- this.gridLeft = "0";
- this.gridBottom = "0";
- this.gridRight = "0";
- this.labelColor = "#000000";
- this.legendColor = "#000000";
- this.legendLocation = "top";
- this.legendFontSize = "13";
- this.fontSize = "13";
- this.fontSize2 = "13";
- this.fontColor = "#000000";
- this.fontColor2 = "#000000";
- this.show = true;
- this.show2 = true;
- this.interval = true;
- this.interval2 = true;
- this.rotate = "0";
- this.rotate2 = "0";
- this.paddingTop = 0;
- this.paddingBottom = 0;
- this.paddingRight = 0;
- this.paddingLeft = 0;
- this.paddingTop2 = 0;
- this.paddingLeft2 = 0;
- this.paddingBottom2 = 0;
- this.paddingRight2 = 0;
- this.type2 = "scroll";
- this.barWidth = "";
- this.scatterSize = "0";
- this.config = new CustomSettingConfigDTO();
- }
- @TableField(value = "uid")
- private String uid;
- @TableField(value = "type")
- private Integer type;
- @TableField(value = "show_type")
- private Integer showType;
- @TableField(value = "table_type")
- private Integer tableType;
- @TableField(value = "theme")
- private String theme;
- @TableField(value = "title1")
- private String title1;
- @TableField(value = "title2")
- private String title2;
- @TableField(value = "data_label")
- private Boolean dataLabel;
- @TableField(value = "data_position")
- private String dataPosition;
- @TableField(value = "data_size")
- private Integer dataSize;
- @TableField(value = "title_size")
- private Integer titleSize;
- @TableField(value = "axis_size")
- private Integer axisSize;
- @TableField(value = "title1_dir")
- private Integer title1Dir;
- @TableField(value = "status")
- private Integer status;
- /**
- * 表格设置
- */
- @TableField(value = "table_config")
- private String tableConfig;
- /**
- * 颜色
- */
- @TableField(value = "color_config")
- private String colorConfig;
- /**
- * 辅助线
- */
- @TableField(value = "line_config")
- private String lineConfig;
- /**
- * 字体
- */
- @TableField(value = "font_family")
- private String fontFamily;
- @TableField(exist = false)
- private CustomSettingConfigDTO config;
- @TableField(value = "create_id")
- private String createId;
- @TableField(value = "create_name")
- private String createName;
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
- @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
- private Date createTime;
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
- @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
- private Date updateTime;
- /**
- * 坐标轴(X)加粗
- */
- @TableField(value = "font_weight")
- private Boolean fontWeight;
- /**
- * 坐标轴(Y)加粗
- */
- @TableField(value = "font_weight2")
- private Boolean fontWeight2;
- @TableField(value = "name_location")
- private String nameLocation;
- /**
- * 高
- */
- @TableField(value = "height")
- private String height;
- /**
- * 宽
- */
- @TableField(value = "width")
- private String width;
- /**
- * 高(单位)
- */
- @TableField(value = "height_unit")
- private String heightUnit;
- /**
- * 宽(单位)
- */
- @TableField(value = "width_unit")
- private String widthUnit;
- /**
- * 坐标轴X(线)是否显示
- */
- @TableField(value = "split_line")
- private Boolean splitLine;
- /**
- * 坐标轴Y(线)是否显示
- */
- @TableField(value = "split_line2")
- private Boolean splitLine2;
- /**
- * 图例是否显示
- */
- @TableField(value = "legend")
- private Boolean legend;
- /**
- * 图例位置
- */
- @TableField(value = "legend_location")
- private String legendLocation;
- /**
- * 图表位置
- */
- @TableField(value = "grid_top")
- private String gridTop;
- @TableField(value = "grid_left")
- private String gridLeft;
- @TableField(value = "grid_right")
- private String gridRight;
- @TableField(value = "grid_bottom")
- private String gridBottom;
- /**
- * 标签字体
- */
- @TableField(value = "font_family2")
- private String fontFamily2;
- /**
- * 标签字体颜色
- */
- @TableField(value = "label_color")
- private String labelColor;
- /**
- * 图例字体
- */
- @TableField(value = "font_family3")
- private String fontFamily3;
- /**
- * 图例字体大小
- */
- @TableField(value = "legend_font_size")
- private String legendFontSize;
- /**
- * 图例字体颜色
- */
- @TableField(value = "legend_color")
- private String legendColor;
- /**
- * 坐标轴(Y)字体
- */
- @TableField(value = "font_family4")
- private String fontFamily4;
- /**
- * 坐标轴(X)字体大小
- */
- @TableField(value = "font_size")
- private String fontSize;
- /**
- * 坐标轴(Y)字体大小
- */
- @TableField(value = "font_size2")
- private String fontSize2;
- /**
- * 坐标轴(X)字体颜色
- */
- @TableField(value = "font_color")
- private String fontColor;
- /**
- * 坐标轴(Y)字体颜色
- */
- @TableField(value = "font_color2")
- private String fontColor2;
- /**
- * 坐标轴(X)显示
- */
- @TableField(value = "show")
- private Boolean show;
- /**
- * 坐标轴(Y)显示
- */
- @TableField(value = "show2")
- private Boolean show2;
- @TableField(value = "name_location2")
- private String nameLocation2;
- /**
- * X轴信息全部显示
- */
- @TableField(value = "interval")
- private Boolean interval;
- /**
- * X轴倾斜角度
- */
- @TableField(value = "rotate")
- private String rotate;
- /**
- * Y轴信息全部显示
- */
- @TableField(value = "interval2")
- private Boolean interval2;
- /**
- * Y轴倾斜角度
- */
- @TableField(value = "rotate2")
- private String rotate2;
- /**
- * X轴标题padding
- */
- @TableField(value = "padding_top")
- private Integer paddingTop;
- @TableField(value = "padding_left")
- private Integer paddingLeft;
- @TableField(value = "padding_bottom")
- private Integer paddingBottom;
- @TableField(value = "padding_right")
- private Integer paddingRight;
- /**
- * Y轴标题padding
- */
- @TableField(value = "padding_top2")
- private Integer paddingTop2;
- @TableField(value = "padding_right2")
- private Integer paddingLeft2;
- @TableField(value = "padding_bottom2")
- private Integer paddingBottom2;
- @TableField(value = "padding_left2")
- private Integer paddingRight2;
- /**
- * 图例类型
- */
- @TableField(value = "type2")
- private String type2;
- /**
- * 饼图(环形图)数值
- */
- @TableField(value = "data_label2")
- private Boolean dataLabel2;
- /**
- * 饼图(环形图)百分比
- */
- @TableField(value = "data_label3")
- private Boolean dataLabel3;
- /**
- * 柱形图宽度
- */
- @TableField(value = "bar_width")
- private String barWidth;
- /**
- * 气泡比例
- */
- @TableField(value = "scatter_size")
- private String scatterSize;
- }
|