feat(notice): 新增公告优先级和未读状态功能,优化公告展示逻辑
This commit is contained in:
10
openhis-server-new/sql/add_priority_to_sys_notice.sql
Normal file
10
openhis-server-new/sql/add_priority_to_sys_notice.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 为 sys_notice 表添加优先级字段
|
||||
-- 执行前请先备份数据库
|
||||
|
||||
ALTER TABLE sys_notice ADD COLUMN priority VARCHAR(10) DEFAULT '2';
|
||||
|
||||
-- 添加注释
|
||||
COMMENT ON COLUMN sys_notice.priority IS '优先级(1高 2中 3低)';
|
||||
|
||||
-- 为现有数据设置默认优先级
|
||||
UPDATE sys_notice SET priority = '2' WHERE priority IS NULL;
|
||||
Reference in New Issue
Block a user