Files
erp-next/sql/bid_notify_fix2.sql
王文昊 8bdb8d7c23 feat: 完成消息通知中心全功能开发
1. 新增消息通知相关实体、Mapper、Service、控制器与前端页面
2. 实现审批通知、报价到期提醒等通知发送逻辑
3. 完成通知菜单配置与路由注册
4. 修复通知数据与跳转路径问题
5. 新增配套SQL脚本与定时任务
2026-06-21 04:20:44 +08:00

22 lines
1.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ════════════════════════════════════════════════════════════════════
-- 消息通知中心 - 修复脚本 #2
-- 修复内容:
-- 1. 修复现有通知 is_read=NULL 的问题导致铃铛未读数为0
-- 2. 将消息通知中心菜单从"系统管理"下移到"系统配置"下,与"待我审批"同级
-- ════════════════════════════════════════════════════════════════════
SET NAMES utf8mb4;
-- 1. 修复现有数据的 is_read=NULL → '0'(新消息默认未读)
UPDATE biz_notify_message SET is_read = '0' WHERE is_read IS NULL OR is_read = '';
-- 2. 移动"消息通知中心"菜单从"系统管理"(parent_id=1) 到"系统配置"(parent_id=2130)
-- 放到"待我审批"(order_num=99) 之后order_num=100
UPDATE sys_menu SET parent_id = 2130, order_num = 100
WHERE menu_id = 2170 AND parent_id = 1;
-- 3. 为 admin 角色重新授权(菜单路径变了,权限不受影响,但刷新一下角色-菜单关联)
-- 注: role_id=1(admin) 的关联已在初始化 SQL 中添加,这里不做重复插入
-- 4. 清理之前插入的测试通知记录is_read 已修复,保留即可)
-- 无需操作