Browse Source

fix: 移除大屏页面表中的冗余字段

hong.yang 1 year ago
parent
commit
4c6f5c2a87

+ 0 - 6
DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/basic/entity/PageEntity.java

@@ -44,12 +44,6 @@ public class PageEntity extends SuperEntity implements Serializable {
     @ApiModelProperty(notes = "大屏首页封面")
     private String coverPicture;
 
-    @ApiModelProperty(notes = "页面图标")
-    private String icon;
-
-    @ApiModelProperty(notes = "图标颜色")
-    private String iconColor;
-
     @ApiModelProperty(notes = "具体组件配置、JSON格式")
     @TableField(typeHandler = BasePageDTOTypeHandler.class)
     private BasePageDTO config;

+ 0 - 4
DataRoom/doc/init.sql

@@ -29,15 +29,11 @@ CREATE TABLE `big_screen_page`
     `name`        varchar(100) NOT NULL DEFAULT '' COMMENT '页面中文名称',
     `code`        varchar(255) NOT NULL DEFAULT '' COMMENT '页面编码,页面唯一标识符',
     `cover_picture`        varchar(255) NOT NULL DEFAULT '' COMMENT '封面图片文件路径',
-    `icon`        varchar(100) NOT NULL DEFAULT '' COMMENT '页面图标',
-    `icon_color`  varchar(100) NOT NULL DEFAULT '' COMMENT '图标颜色',
     `type`        varchar(100) NOT NULL DEFAULT 'custom' COMMENT '页面类型',
-    `layout`      varchar(255) NOT NULL DEFAULT '' COMMENT '组件布局,记录组件的相对位置和顺序',
     `config`      longtext COMMENT '页面配置',
     `parent_code` varchar(255) NOT NULL DEFAULT '' COMMENT '父级目录编码',
     `order_num`   bigint(64)   NOT NULL DEFAULT '0' COMMENT '排序',
     `remark`      varchar(100) NOT NULL DEFAULT '' COMMENT '备忘',
-    `model_code`  varchar(255) NOT NULL DEFAULT '' COMMENT '模型编码',
     `app_code`    varchar(255) NOT NULL DEFAULT '' COMMENT '所属应用编码',
     `update_date` timestamp                        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
     `create_date` timestamp                        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',

+ 7 - 1
DataRoom/doc/update.sql

@@ -143,4 +143,10 @@ CREATE TABLE `big_screen_page_preview`
     `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
     PRIMARY KEY (`id`)
 ) ENGINE = InnoDB
-  DEFAULT CHARSET = utf8mb4 COMMENT ='页面预览缓存表,每日定时删除';
+  DEFAULT CHARSET = utf8mb4 COMMENT ='页面预览缓存表,每日定时删除';
+
+# 20231009 移除大屏页面表中的冗余字段
+alter table big_screen_page drop column icon;
+alter table big_screen_page drop column icon_color;
+alter table big_screen_page drop column layout;
+alter table big_screen_page drop column model_code;