mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-03-29 00:33:24 +08:00
update 完成消息盒子功能前后端联动(已读未读在前端浏览器存储)
This commit is contained in:
@@ -925,7 +925,50 @@ insert into sys_notice values('2', '维护通知:2018-07-01 系统凌晨维护
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 18、代码生成业务表
|
||||
-- 18、消息记录表
|
||||
-- ----------------------------
|
||||
create table sys_message (
|
||||
message_id number(20) not null,
|
||||
category varchar2(20) not null,
|
||||
type varchar2(20) not null,
|
||||
source varchar2(20) not null,
|
||||
title varchar2(100) default '',
|
||||
message varchar2(500) default '',
|
||||
content clob default null,
|
||||
data_json clob default null,
|
||||
path varchar2(500) default null,
|
||||
send_user_ids varchar2(2000) default '0' not null,
|
||||
create_dept number(20) default null,
|
||||
create_by number(20) default null,
|
||||
create_time date,
|
||||
update_by number(20) default null,
|
||||
update_time date
|
||||
);
|
||||
|
||||
alter table sys_message add constraint pk_sys_message primary key (message_id);
|
||||
|
||||
create index idx_sys_message_category_time on sys_message(category, create_time);
|
||||
|
||||
comment on table sys_message is '消息记录表';
|
||||
comment on column sys_message.message_id is '消息ID';
|
||||
comment on column sys_message.category is '消息分组(system/notice/workflow)';
|
||||
comment on column sys_message.type is '消息类型';
|
||||
comment on column sys_message.source is '消息来源';
|
||||
comment on column sys_message.title is '标题';
|
||||
comment on column sys_message.message is '摘要消息';
|
||||
comment on column sys_message.content is '详细内容';
|
||||
comment on column sys_message.data_json is '扩展数据JSON';
|
||||
comment on column sys_message.path is '前端跳转路径';
|
||||
comment on column sys_message.send_user_ids is '目标用户ID串,0表示全局';
|
||||
comment on column sys_message.create_dept is '创建部门';
|
||||
comment on column sys_message.create_by is '创建者';
|
||||
comment on column sys_message.create_time is '创建时间';
|
||||
comment on column sys_message.update_by is '更新者';
|
||||
comment on column sys_message.update_time is '更新时间';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表
|
||||
-- ----------------------------
|
||||
create table gen_table (
|
||||
table_id number(20) not null,
|
||||
@@ -980,7 +1023,7 @@ comment on column gen_table.remark is '备注';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表字段
|
||||
-- 20、代码生成业务表字段
|
||||
-- ----------------------------
|
||||
create table gen_table_column (
|
||||
column_id number(20) not null,
|
||||
|
||||
@@ -923,7 +923,50 @@ insert into sys_notice values('2', '维护通知:2018-07-01 系统凌晨维护
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 18、代码生成业务表
|
||||
-- 18、消息记录表
|
||||
-- ----------------------------
|
||||
create table if not exists sys_message
|
||||
(
|
||||
message_id int8,
|
||||
category varchar(20) not null,
|
||||
type varchar(20) not null,
|
||||
source varchar(20) not null,
|
||||
title varchar(100) default ''::varchar,
|
||||
message varchar(500) default ''::varchar,
|
||||
content text,
|
||||
data_json text,
|
||||
path varchar(500) default null::varchar,
|
||||
send_user_ids varchar(2000) not null default '0'::varchar,
|
||||
create_dept int8,
|
||||
create_by int8,
|
||||
create_time timestamp,
|
||||
update_by int8,
|
||||
update_time timestamp,
|
||||
constraint sys_message_pk primary key (message_id)
|
||||
);
|
||||
|
||||
create index if not exists idx_sys_message_category_time on sys_message (category, create_time);
|
||||
|
||||
comment on table sys_message is '消息记录表';
|
||||
comment on column sys_message.message_id is '消息ID';
|
||||
comment on column sys_message.category is '消息分组(system/notice/workflow)';
|
||||
comment on column sys_message.type is '消息类型';
|
||||
comment on column sys_message.source is '消息来源';
|
||||
comment on column sys_message.title is '标题';
|
||||
comment on column sys_message.message is '摘要消息';
|
||||
comment on column sys_message.content is '详细内容';
|
||||
comment on column sys_message.data_json is '扩展数据JSON';
|
||||
comment on column sys_message.path is '前端跳转路径';
|
||||
comment on column sys_message.send_user_ids is '目标用户ID串,0表示全局';
|
||||
comment on column sys_message.create_dept is '创建部门';
|
||||
comment on column sys_message.create_by is '创建者';
|
||||
comment on column sys_message.create_time is '创建时间';
|
||||
comment on column sys_message.update_by is '更新者';
|
||||
comment on column sys_message.update_time is '更新时间';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表
|
||||
-- ----------------------------
|
||||
create table if not exists gen_table
|
||||
(
|
||||
@@ -977,7 +1020,7 @@ comment on column gen_table.update_time is '更新时间';
|
||||
comment on column gen_table.remark is '备注';
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表字段
|
||||
-- 20、代码生成业务表字段
|
||||
-- ----------------------------
|
||||
create table if not exists gen_table_column
|
||||
(
|
||||
|
||||
@@ -689,7 +689,31 @@ insert into sys_notice values('2', '维护通知:2018-07-01 系统凌晨维护
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 18、代码生成业务表
|
||||
-- 18、消息记录表
|
||||
-- ----------------------------
|
||||
create table sys_message (
|
||||
message_id bigint(20) not null comment '消息ID',
|
||||
category varchar(20) not null comment '消息分组(system/notice/workflow)',
|
||||
type varchar(20) not null comment '消息类型',
|
||||
source varchar(20) not null comment '消息来源',
|
||||
title varchar(100) default '' comment '标题',
|
||||
message varchar(500) default '' comment '摘要消息',
|
||||
content longtext comment '详细内容',
|
||||
data_json longtext comment '扩展数据JSON',
|
||||
path varchar(500) default null comment '前端跳转路径',
|
||||
send_user_ids varchar(2000) not null default '0' comment '目标用户ID串,0表示全局',
|
||||
create_dept bigint(20) default null comment '创建部门',
|
||||
create_by bigint(20) default null comment '创建者',
|
||||
create_time datetime comment '创建时间',
|
||||
update_by bigint(20) default null comment '更新者',
|
||||
update_time datetime comment '更新时间',
|
||||
primary key (message_id),
|
||||
key idx_sys_message_category_time (category, create_time)
|
||||
) engine=innodb comment = '消息记录表';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 19、代码生成业务表
|
||||
-- ----------------------------
|
||||
create table gen_table (
|
||||
table_id bigint(20) not null comment '编号',
|
||||
|
||||
@@ -1674,6 +1674,130 @@ GO
|
||||
INSERT sys_notice VALUES (2, N'维护通知:2018-07-01 若依系统凌晨维护', N'1', N'维护内容', N'0', 103, 1, getdate(), NULL, NULL, N'管理员')
|
||||
GO
|
||||
|
||||
CREATE TABLE sys_message
|
||||
(
|
||||
message_id bigint NOT NULL,
|
||||
category nvarchar(20) NOT NULL,
|
||||
type nvarchar(20) NOT NULL,
|
||||
source nvarchar(20) NOT NULL,
|
||||
title nvarchar(100) DEFAULT ('') NULL,
|
||||
message nvarchar(500) DEFAULT ('') NULL,
|
||||
content nvarchar(max) NULL,
|
||||
data_json nvarchar(max) NULL,
|
||||
path nvarchar(500) NULL,
|
||||
send_user_ids nvarchar(2000) DEFAULT ('0') NOT NULL,
|
||||
create_dept bigint NULL,
|
||||
create_by bigint NULL,
|
||||
create_time datetime2(7) NULL,
|
||||
update_by bigint NULL,
|
||||
update_time datetime2(7) NULL,
|
||||
CONSTRAINT PK__sys_mess__0BBF6EE69F35486A PRIMARY KEY CLUSTERED (message_id)
|
||||
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
|
||||
ON [PRIMARY]
|
||||
)
|
||||
ON [PRIMARY]
|
||||
TEXTIMAGE_ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE NONCLUSTERED INDEX idx_sys_message_category_time ON sys_message(category, create_time)
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'消息ID' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'message_id'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'消息分组(system/notice/workflow)' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'category'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'消息类型' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'type'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'消息来源' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'source'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'标题' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'title'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'摘要消息' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'message'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'详细内容' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'content'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'扩展数据JSON' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'data_json'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'前端跳转路径' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'path'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'目标用户ID串,0表示全局' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'send_user_ids'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'创建部门' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'create_dept'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'创建者' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'create_by'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'创建时间' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'create_time'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'更新者' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'update_by'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'更新时间' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message',
|
||||
'COLUMN', N'update_time'
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty
|
||||
'MS_Description', N'消息记录表' ,
|
||||
'SCHEMA', N'dbo',
|
||||
'TABLE', N'sys_message'
|
||||
GO
|
||||
|
||||
CREATE TABLE sys_oper_log
|
||||
(
|
||||
oper_id bigint NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user