提交代码
This commit is contained in:
1 parent
30e4c65a91
commit
5c36b47800
3 files changed
+13008
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,88 @@
|
||||
-- =====================================================
|
||||
-- 学生考核管理字典数据
|
||||
-- 创建时间: 2025-01-03
|
||||
-- 描述: 学生考核管理相关字典数据
|
||||
-- =====================================================
|
||||
|
||||
-- 1. 违纪处分类型分类字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1001, '违纪处分类型分类', 'student_discipline_category', '0', 1, NOW(), NULL, NULL, '学生违纪处分类型分类');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10001, 1, '违纪类型', '1', 'student_discipline_category', '', 'primary', 'Y', '0', 1, NOW(), NULL, NULL, '违纪类型'),
|
||||
(10002, 2, '处分类型', '2', 'student_discipline_category', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '处分类型');
|
||||
|
||||
-- 2. 违纪处分记录状态字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1002, '违纪处分记录状态', 'student_discipline_status', '0', 1, NOW(), NULL, NULL, '学生违纪处分记录状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10003, 1, '生效', '1', 'student_discipline_status', '', 'success', 'Y', '0', 1, NOW(), NULL, NULL, '违纪处分记录生效'),
|
||||
(10004, 2, '撤销申请中', '2', 'student_discipline_status', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '撤销申请审核中'),
|
||||
(10005, 3, '已撤销', '3', 'student_discipline_status', '', 'info', 'N', '0', 1, NOW(), NULL, NULL, '违纪处分记录已撤销');
|
||||
|
||||
-- 3. 撤销申请状态字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1003, '撤销申请状态', 'student_revoke_status', '0', 1, NOW(), NULL, NULL, '违纪处分撤销申请状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10006, 1, '待审核', '1', 'student_revoke_status', '', 'warning', 'Y', '0', 1, NOW(), NULL, NULL, '撤销申请待审核'),
|
||||
(10007, 2, '审核通过', '2', 'student_revoke_status', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '撤销申请审核通过'),
|
||||
(10008, 3, '审核拒绝', '3', 'student_revoke_status', '', 'danger', 'N', '0', 1, NOW(), NULL, NULL, '撤销申请审核拒绝');
|
||||
|
||||
-- 4. 考核指标类型字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1004, '考核指标类型', 'student_indicator_type', '0', 1, NOW(), NULL, NULL, '学生考核指标类型');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10009, 1, '德育', '1', 'student_indicator_type', '', 'primary', 'Y', '0', 1, NOW(), NULL, NULL, '德育指标'),
|
||||
(10010, 2, '智育', '2', 'student_indicator_type', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '智育指标'),
|
||||
(10011, 3, '体育', '3', 'student_indicator_type', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '体育指标'),
|
||||
(10012, 4, '美育', '4', 'student_indicator_type', '', 'info', 'N', '0', 1, NOW(), NULL, NULL, '美育指标'),
|
||||
(10013, 5, '劳动', '5', 'student_indicator_type', '', 'danger', 'N', '0', 1, NOW(), NULL, NULL, '劳动指标');
|
||||
|
||||
-- 5. 考核计划状态字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1005, '考核计划状态', 'student_schedule_status', '0', 1, NOW(), NULL, NULL, '学生考核计划状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10014, 1, '未开始', '1', 'student_schedule_status', '', 'info', 'Y', '0', 1, NOW(), NULL, NULL, '考核计划未开始'),
|
||||
(10015, 2, '进行中', '2', 'student_schedule_status', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '考核计划进行中'),
|
||||
(10016, 3, '已结束', '3', 'student_schedule_status', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '考核计划已结束');
|
||||
|
||||
-- 6. 考核申请状态字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1006, '考核申请状态', 'student_assessment_status', '0', 1, NOW(), NULL, NULL, '学生考核申请状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10017, 1, '草稿', '1', 'student_assessment_status', '', 'info', 'Y', '0', 1, NOW(), NULL, NULL, '考核申请草稿'),
|
||||
(10018, 2, '已提交', '2', 'student_assessment_status', '', 'primary', 'N', '0', 1, NOW(), NULL, NULL, '考核申请已提交'),
|
||||
(10019, 3, '班主任审核', '3', 'student_assessment_status', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '班主任审核中'),
|
||||
(10020, 4, '学院审核', '4', 'student_assessment_status', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '学院审核中'),
|
||||
(10021, 5, '学校审核', '5', 'student_assessment_status', '', 'warning', 'N', '0', 1, NOW(), NULL, NULL, '学校审核中'),
|
||||
(10022, 6, '已完成', '6', 'student_assessment_status', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '考核申请已完成');
|
||||
|
||||
-- 7. 附加分审核状态字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1007, '附加分审核状态', 'student_bonus_status', '0', 1, NOW(), NULL, NULL, '学生考核附加分审核状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10023, 1, '待审核', '1', 'student_bonus_status', '', 'warning', 'Y', '0', 1, NOW(), NULL, NULL, '附加分待审核'),
|
||||
(10024, 2, '审核通过', '2', 'student_bonus_status', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '附加分审核通过'),
|
||||
(10025, 3, '审核拒绝', '3', 'student_bonus_status', '', 'danger', 'N', '0', 1, NOW(), NULL, NULL, '附加分审核拒绝');
|
||||
|
||||
-- 8. 学期字典
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1008, '学期', 'student_semester', '0', 1, NOW(), NULL, NULL, '学期');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10026, 1, '第一学期', '1', 'student_semester', '', 'primary', 'Y', '0', 1, NOW(), NULL, NULL, '第一学期'),
|
||||
(10027, 2, '第二学期', '2', 'student_semester', '', 'success', 'N', '0', 1, NOW(), NULL, NULL, '第二学期');
|
||||
|
||||
-- 9. 通用状态字典(启用/禁用)
|
||||
INSERT INTO `sys_dict_type` (`id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(1009, '通用状态', 'common_status', '0', 1, NOW(), NULL, NULL, '通用启用禁用状态');
|
||||
|
||||
INSERT INTO `sys_dict_data` (`id`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
|
||||
(10028, 1, '启用', '0', 'common_status', '', 'success', 'Y', '0', 1, NOW(), NULL, NULL, '启用状态'),
|
||||
(10029, 2, '禁用', '1', 'common_status', '', 'danger', 'N', '0', 1, NOW(), NULL, NULL, '禁用状态');
|
||||
@@ -0,0 +1,368 @@
|
||||
-- =====================================================
|
||||
-- 学生考核管理数据库模型
|
||||
-- 创建时间: 2025-01-03
|
||||
-- 描述: 学生违纪处分、考核评价、奖励管理完整数据库模型
|
||||
-- =====================================================
|
||||
|
||||
-- 1. 违纪处分类型表
|
||||
DROP TABLE IF EXISTS `xskh_discipline_type`;
|
||||
CREATE TABLE `xskh_discipline_type` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`type_code` varchar(50) NOT NULL COMMENT '类型编码',
|
||||
`type_name` varchar(100) NOT NULL COMMENT '类型名称',
|
||||
`type_category` char(1) NOT NULL COMMENT '类型分类(1-违纪类型 2-处分类型)',
|
||||
`remark` varchar(500) DEFAULT NULL COMMENT '类型说明',
|
||||
`status` char(1) DEFAULT '0' COMMENT '状态(0-正常 1-停用)',
|
||||
`sort_order` int(4) DEFAULT 0 COMMENT '排序号',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_type_code` (`type_code`),
|
||||
KEY `idx_type_category` (`type_category`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生违纪处分类型表';
|
||||
|
||||
-- 2. 学生违纪处分记录表
|
||||
DROP TABLE IF EXISTS `xskh_discipline_record`;
|
||||
CREATE TABLE `xskh_discipline_record` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`student_id` bigint(20) NOT NULL COMMENT '学生ID',
|
||||
`student_no` varchar(20) NOT NULL COMMENT '学号',
|
||||
`student_name` varchar(50) NOT NULL COMMENT '学生姓名',
|
||||
`college_id` bigint(20) NOT NULL COMMENT '学院ID',
|
||||
`college_name` varchar(100) NOT NULL COMMENT '学院名称',
|
||||
`major_id` bigint(20) NOT NULL COMMENT '专业ID',
|
||||
`major_name` varchar(100) NOT NULL COMMENT '专业名称',
|
||||
`class_id` bigint(20) NOT NULL COMMENT '班级ID',
|
||||
`class_name` varchar(100) NOT NULL COMMENT '班级名称',
|
||||
`discipline_type_id` bigint(20) NOT NULL COMMENT '违纪处分类型ID',
|
||||
`discipline_type_name` varchar(100) NOT NULL COMMENT '违纪处分类型名称',
|
||||
`discipline_date` date NOT NULL COMMENT '违纪处分日期',
|
||||
`discipline_reason` varchar(500) NOT NULL COMMENT '违纪处分原因',
|
||||
`discipline_content` varchar(500) DEFAULT NULL COMMENT '违纪处分内容',
|
||||
`score_deduction` decimal(5,2) DEFAULT 0.00 COMMENT '扣分分值',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-生效 2-已撤销)',
|
||||
`approval_status` char(1) DEFAULT '1' COMMENT '审批状态(1-已审批 2-审批中)',
|
||||
`approval_by` bigint(20) DEFAULT NULL COMMENT '审批人ID',
|
||||
`approval_time` datetime DEFAULT NULL COMMENT '审批时间',
|
||||
`approval_remark` varchar(500) DEFAULT NULL COMMENT '审批备注',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_student_id` (`student_id`),
|
||||
KEY `idx_student_no` (`student_no`),
|
||||
KEY `idx_college_id` (`college_id`),
|
||||
KEY `idx_discipline_date` (`discipline_date`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生违纪处分记录表';
|
||||
|
||||
-- 3. 违纪处分撤销申请审批表
|
||||
DROP TABLE IF EXISTS `xskh_discipline_revoke`;
|
||||
CREATE TABLE `xskh_discipline_revoke` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`discipline_record_id` bigint(20) NOT NULL COMMENT '违纪记录ID',
|
||||
`student_id` bigint(20) NOT NULL COMMENT '学生ID',
|
||||
`student_name` varchar(50) NOT NULL COMMENT '学生姓名',
|
||||
`revoke_reason` varchar(500) NOT NULL COMMENT '撤销申请原因',
|
||||
`revoke_evidence` varchar(500) DEFAULT NULL COMMENT '撤销证明材料',
|
||||
`apply_time` datetime NOT NULL COMMENT '申请时间',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-待审核 2-审核通过 3-审核拒绝)',
|
||||
`approval_by` bigint(20) DEFAULT NULL COMMENT '审核人ID',
|
||||
`approval_time` datetime DEFAULT NULL COMMENT '审核时间',
|
||||
`approval_remark` varchar(500) DEFAULT NULL COMMENT '审核备注',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_discipline_record_id` (`discipline_record_id`),
|
||||
KEY `idx_student_id` (`student_id`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='违纪处分撤销申请审批表';
|
||||
|
||||
-- 4. 奖励类型表
|
||||
DROP TABLE IF EXISTS `xskh_reward_type`;
|
||||
CREATE TABLE `xskh_reward_type` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`type_code` varchar(50) NOT NULL COMMENT '类型编码',
|
||||
`type_name` varchar(100) NOT NULL COMMENT '类型名称',
|
||||
`description` varchar(500) DEFAULT NULL COMMENT '类型说明',
|
||||
`status` char(1) DEFAULT '0' COMMENT '状态(0-正常 1-停用)',
|
||||
`sort_order` int(4) DEFAULT 0 COMMENT '排序号',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_type_code` (`type_code`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生奖励类型表';
|
||||
|
||||
-- 5. 学生奖励记录表
|
||||
DROP TABLE IF EXISTS `xskh_reward_record`;
|
||||
CREATE TABLE `xskh_reward_record` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`student_id` bigint(20) NOT NULL COMMENT '学生ID',
|
||||
`student_no` varchar(20) NOT NULL COMMENT '学号',
|
||||
`student_name` varchar(50) NOT NULL COMMENT '学生姓名',
|
||||
`college_id` bigint(20) NOT NULL COMMENT '学院ID',
|
||||
`college_name` varchar(100) NOT NULL COMMENT '学院名称',
|
||||
`major_id` bigint(20) NOT NULL COMMENT '专业ID',
|
||||
`major_name` varchar(100) NOT NULL COMMENT '专业名称',
|
||||
`class_id` bigint(20) NOT NULL COMMENT '班级ID',
|
||||
`class_name` varchar(100) NOT NULL COMMENT '班级名称',
|
||||
`reward_type_id` bigint(20) NOT NULL COMMENT '奖励类型ID',
|
||||
`reward_type_name` varchar(100) NOT NULL COMMENT '奖励类型名称',
|
||||
`reward_date` date NOT NULL COMMENT '奖励日期',
|
||||
`reward_content` varchar(500) NOT NULL COMMENT '奖励内容',
|
||||
`score_addition` decimal(5,2) DEFAULT 0.00 COMMENT '加分分值',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-生效 2-撤销)',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_student_id` (`student_id`),
|
||||
KEY `idx_reward_date` (`reward_date`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生奖励记录表';
|
||||
|
||||
-- 6. 学生考核指标体系类型表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_indicator_type`;
|
||||
CREATE TABLE `xskh_assessment_indicator_type` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`type_code` varchar(50) NOT NULL COMMENT '类型编码',
|
||||
`type_name` varchar(100) NOT NULL COMMENT '类型名称',
|
||||
`description` varchar(500) DEFAULT NULL COMMENT '类型说明',
|
||||
`status` char(1) DEFAULT '0' COMMENT '状态(0-启用 1-禁用)',
|
||||
`sort_order` int(4) DEFAULT 0 COMMENT '排序号',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_type_code` (`type_code`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核指标体系类型表';
|
||||
|
||||
-- 7. 学生考核指标体系表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_indicator`;
|
||||
CREATE TABLE `xskh_assessment_indicator` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`indicator_code` varchar(50) NOT NULL COMMENT '指标编码',
|
||||
`indicator_name` varchar(100) NOT NULL COMMENT '指标名称',
|
||||
`indicator_type_id` bigint(20) NOT NULL COMMENT '指标类型ID',
|
||||
`indicator_type_name` varchar(100) NOT NULL COMMENT '指标类型名称',
|
||||
`description` varchar(500) DEFAULT NULL COMMENT '指标说明',
|
||||
`max_score` decimal(5,2) NOT NULL COMMENT '最高分值',
|
||||
`weight` decimal(3,2) DEFAULT 1.00 COMMENT '权重',
|
||||
`status` char(1) DEFAULT '0' COMMENT '状态(0-启用 1-禁用)',
|
||||
`sort_order` int(4) DEFAULT 0 COMMENT '排序号',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_indicator_code` (`indicator_code`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核指标体系表';
|
||||
|
||||
-- 7. 学生考核方案表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_plan`;
|
||||
CREATE TABLE `xskh_assessment_plan` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`plan_code` varchar(50) NOT NULL COMMENT '方案编号',
|
||||
`plan_name` varchar(100) NOT NULL COMMENT '方案名称',
|
||||
`description` varchar(500) DEFAULT NULL COMMENT '方案说明',
|
||||
`status` char(1) DEFAULT '0' COMMENT '状态(0-启用 1-禁用)',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_plan_code` (`plan_code`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核方案表';
|
||||
|
||||
-- 8. 考核方案关联指标体系表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_plan_indicator`;
|
||||
CREATE TABLE `xskh_assessment_plan_indicator` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`plan_id` bigint(20) NOT NULL COMMENT '考核方案ID',
|
||||
`indicator_id` bigint(20) NOT NULL COMMENT '指标体系ID',
|
||||
`weight` decimal(3,2) DEFAULT 1.00 COMMENT '权重',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_plan_indicator` (`plan_id`, `indicator_id`),
|
||||
KEY `idx_plan_id` (`plan_id`),
|
||||
KEY `idx_indicator_id` (`indicator_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='考核方案关联指标体系表';
|
||||
|
||||
-- 9、考核创建一个表关联考核指标跟违纪处分类型和奖励类型的关联表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_indicator_discipline_type`;
|
||||
CREATE TABLE `xskh_assessment_indicator_discipline_type` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`indicator_id` bigint(20) NOT NULL COMMENT '指标ID',
|
||||
`discipline_type_ids` varchar(500) NOT NULL COMMENT '违纪处分类型ID,逗号分隔',
|
||||
`reward_type_ids` varchar(500) NOT NULL COMMENT '奖励类型ID,逗号分隔',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='考核指标关联违纪处分类型表';
|
||||
|
||||
-- 10. 学生考核计划表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_schedule`;
|
||||
CREATE TABLE `xskh_assessment_schedule` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`schedule_name` varchar(100) NOT NULL COMMENT '考核计划名称',
|
||||
`plan_id` bigint(20) NOT NULL COMMENT '考核方案ID',
|
||||
`plan_name` varchar(100) NOT NULL COMMENT '考核方案名称',
|
||||
`academic_year` varchar(20) NOT NULL COMMENT '学年',
|
||||
`semester` char(1) NOT NULL COMMENT '学期(1-第一学期 2-第二学期)',
|
||||
`start_time` datetime NOT NULL COMMENT '开始时间',
|
||||
`end_time` datetime NOT NULL COMMENT '结束时间',
|
||||
`data_start_time` datetime NOT NULL COMMENT '数据统计开始时间',
|
||||
`data_end_time` datetime NOT NULL COMMENT '数据统计结束时间',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-未开始 2-进行中 3-已结束)',
|
||||
`description` varchar(500) DEFAULT NULL COMMENT '计划说明',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_plan_id` (`plan_id`),
|
||||
KEY `idx_academic_year` (`academic_year`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核计划表';
|
||||
|
||||
-- 11. 学生考核申请表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_application`;
|
||||
CREATE TABLE `xskh_assessment_application` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`schedule_id` bigint(20) NOT NULL COMMENT '考核计划ID',
|
||||
`student_id` bigint(20) NOT NULL COMMENT '学生ID',
|
||||
`student_no` varchar(20) NOT NULL COMMENT '学号',
|
||||
`student_name` varchar(50) NOT NULL COMMENT '学生姓名',
|
||||
`college_id` bigint(20) NOT NULL COMMENT '学院ID',
|
||||
`college_name` varchar(100) NOT NULL COMMENT '学院名称',
|
||||
`major_id` bigint(20) NOT NULL COMMENT '专业ID',
|
||||
`major_name` varchar(100) NOT NULL COMMENT '专业名称',
|
||||
`class_id` bigint(20) NOT NULL COMMENT '班级ID',
|
||||
`class_name` varchar(100) NOT NULL COMMENT '班级名称',
|
||||
`total_score` decimal(5,2) DEFAULT 0.00 COMMENT '总得分',
|
||||
`self_score` decimal(5,2) DEFAULT 0.00 COMMENT '自评得分',
|
||||
`teacher_score` decimal(5,2) DEFAULT 0.00 COMMENT '班主任评分',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-草稿 2-已提交 3-班主任审核 6-已完成)',
|
||||
`submit_time` datetime DEFAULT NULL COMMENT '提交时间',
|
||||
`teacher_approval_by` bigint(20) DEFAULT NULL COMMENT '班主任审核人ID',
|
||||
`teacher_approval_time` datetime DEFAULT NULL COMMENT '班主任审核时间',
|
||||
`teacher_approval_remark` varchar(500) DEFAULT NULL COMMENT '班主任审核备注',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_schedule_student` (`schedule_id`, `student_id`),
|
||||
KEY `idx_schedule_id` (`schedule_id`),
|
||||
KEY `idx_student_id` (`student_id`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核申请表';
|
||||
|
||||
-- 12. 学生考核自评、班主任评分表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_self_score`;
|
||||
CREATE TABLE `xskh_assessment_self_score` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`application_id` bigint(20) NOT NULL COMMENT '考核申请ID',
|
||||
`indicator_id` bigint(20) NOT NULL COMMENT '指标ID',
|
||||
`indicator_name` varchar(100) NOT NULL COMMENT '指标名称',
|
||||
`indicator_type` char(1) NOT NULL COMMENT '指标类型',
|
||||
`max_score` decimal(5,2) NOT NULL COMMENT '最高分值',
|
||||
`self_score` decimal(5,2) DEFAULT 0.00 COMMENT '自评得分',
|
||||
`self_remark` varchar(500) DEFAULT NULL COMMENT '自评备注',
|
||||
-- 班主任给予的分数和备注
|
||||
`teacher_score` decimal(5,2) DEFAULT 0.00 COMMENT '班主任评分',
|
||||
`teacher_remark` varchar(500) DEFAULT NULL COMMENT '班主任备注',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_application_indicator` (`application_id`, `indicator_id`),
|
||||
KEY `idx_application_id` (`application_id`),
|
||||
KEY `idx_indicator_id` (`indicator_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核自评得分表';
|
||||
|
||||
-- 13. 学生考核附加分表
|
||||
DROP TABLE IF EXISTS `xskh_assessment_bonus`;
|
||||
CREATE TABLE `xskh_assessment_bonus` (
|
||||
`id` bigint(20) NOT NULL COMMENT '主键ID',
|
||||
`application_id` bigint(20) NOT NULL COMMENT '考核申请ID',
|
||||
`bonus_name` varchar(100) NOT NULL COMMENT '附加分项目名称',
|
||||
`bonus_content` varchar(500) NOT NULL COMMENT '附加分内容',
|
||||
`bonus_score` decimal(5,2) NOT NULL COMMENT '附加分值',
|
||||
`evidence_file` varchar(500) DEFAULT NULL COMMENT '证明材料文件,ossIds,逗号分隔',
|
||||
`status` char(1) DEFAULT '1' COMMENT '状态(1-待审核 2-审核通过 3-审核拒绝)',
|
||||
`approval_by` bigint(20) DEFAULT NULL COMMENT '审核人ID',
|
||||
`approval_time` datetime DEFAULT NULL COMMENT '审核时间',
|
||||
`approval_remark` varchar(500) DEFAULT NULL COMMENT '审核备注',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`create_dept` bigint(20) DEFAULT NULL COMMENT '创建部门',
|
||||
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted` tinyint(1) DEFAULT 0 COMMENT '删除标志(0-未删除 1-已删除)',
|
||||
`tenant_id` varchar(20) DEFAULT '000000' COMMENT '租户ID',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_application_id` (`application_id`),
|
||||
KEY `idx_status` (`status`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='学生考核附加分表';
|
||||
|
||||
|
||||
Reference in new issue
Block a user