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

21 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.

-- ════════════════════════════════════════════════════════════════════
-- 消息通知中心 - Bug 修复脚本
-- 修复内容:
-- 1. 注册 Quartz 定时任务(报价到期检查)
-- 2. 将现有待审批的 CLIENT_QUOTE(quote_id=6) 状态重置为 draft
-- ════════════════════════════════════════════════════════════════════
SET NAMES utf8mb4;
-- 1. 注册 Quartz 定时任务报价到期检查每天上午9点执行
-- 如果已通过 UI 注册则跳过
DELETE FROM sys_job WHERE job_name = '报价到期检查' AND job_group = 'DEFAULT';
INSERT INTO sys_job (job_id, job_name, job_group, invoke_target, cron_expression,
misfire_policy, concurrent, status, create_by, create_time, remark)
VALUES (100, '报价到期检查', 'DEFAULT',
'quotationExpireTask.checkQuotationExpire()',
'0 0 9 * * ?',
'3', '1', '0', 'admin', sysdate(), '报价到期提醒,每天检查即将到期和已过期的报价单');
-- 2. 将 quote_id=6 的测试数据重置为 draft 方便重新测试审批提交通知
UPDATE biz_client_quote SET status = 'draft', update_time = sysdate() WHERE quote_id = 6 AND status = '10';