优化日程提醒模块

This commit is contained in:
2026-09-08 22:18:36 +08:00
parent 3d53f03246
commit 7f3de60423
17 changed files with 1516 additions and 270 deletions
+6 -1
View File
@@ -17,11 +17,16 @@ CREATE TABLE `yz_backend_oa_schedule` (
`priority` tinyint NOT NULL DEFAULT '0' COMMENT '优先级 0-普通 1-重要 2-紧急',
`status` tinyint NOT NULL DEFAULT '0' COMMENT '状态 0-待办 1-完成',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`source_id` bigint unsigned NOT NULL DEFAULT '0' COMMENT '顺延来源日程ID 0-原始日程',
`carry_over` tinyint NOT NULL DEFAULT '0' COMMENT '是否已顺延到下一天 0-否 1-是',
`carry_count` int NOT NULL DEFAULT '0' COMMENT '累计顺延次数',
`carry_to_date` varchar(10) NOT NULL DEFAULT '' COMMENT '顺延目标日期(YYYY-MM-DD)',
`is_deleted` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除 0-否 1-是',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`delete_time` datetime DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`),
KEY `idx_tid_user_date` (`tid`,`user_id`,`schedule_date`),
KEY `idx_schedule_date` (`schedule_date`)
KEY `idx_schedule_date` (`schedule_date`),
KEY `idx_source_id` (`source_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='OA日程管理表(日历待办)';