-- ===================================================== -- 勤工俭学管理系统测试数据脚本 -- 项目: 校园管理系统 - 勤工俭学模块 -- 版本: v1.0 -- 创建时间: 2025-01-03 -- ===================================================== -- 设置字符集 SET NAMES utf8mb4; -- ===================================================== -- 1. 插入测试岗位数据 -- ===================================================== -- 1.1 图书馆助理管理员岗位 INSERT INTO `jcbt_work_study_position` (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`, `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`, `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000001, '图书馆助理管理员', 'UNIVERSITY', 5, '周一至周五 14:00-17:00', '2025-01-03', '2025-06-30', '1. 大二及以上年级\n2. 学习成绩良好\n3. 责任心强,工作认真\n4. 熟悉图书分类和管理', '每小时15元,按实际工作时间计算', '张老师', '13800138001', 1001, '文学院', 'RECRUITING', 1, 1, '000000'); -- 1.2 实验室设备维护岗位 INSERT INTO `jcbt_work_study_position` (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`, `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`, `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000002, '实验室设备维护', 'COLLEGE', 2, '周三、周五 16:00-18:00', '2025-01-03', '2025-05-31', '1. 理工科专业学生\n2. 有基础的设备维护经验\n3. 动手能力强\n4. 能吃苦耐劳', '每小时18元,有技术补贴', '李老师', '13800138002', 1002, '理学院', 'RECRUITING', 1, 1, '000000'); -- 1.3 学生宿舍管理助理岗位 INSERT INTO `jcbt_work_study_position` (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`, `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`, `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000003, '学生宿舍管理助理', 'UNIVERSITY', 8, '周一至周日轮班,每次4小时', '2025-01-03', '2025-07-31', '1. 品行端正,无违纪记录\n2. 沟通能力强\n3. 能适应轮班工作\n4. 有服务意识', '每小时12元,夜班有补贴', '王老师', '13800138003', 1003, '学生处', 'RECRUITING', 1, 1, '000000'); -- 1.4 教学助理岗位 INSERT INTO `jcbt_work_study_position` (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`, `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`, `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000004, '教学助理', 'COLLEGE', 3, '周二、周四 10:00-12:00', '2025-01-03', '2025-06-15', '1. 本专业学生\n2. 学习成绩优秀\n3. 表达能力强\n4. 有耐心和责任心', '每小时20元,期末有奖励', '赵老师', '13800138004', 1001, '文学院', 'RECRUITING', 1, 1, '000000'); -- 1.5 校园网络维护岗位 INSERT INTO `jcbt_work_study_position` (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`, `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`, `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000005, '校园网络维护', 'UNIVERSITY', 4, '周一至周五随时待命', '2025-01-03', '2025-12-31', '1. 计算机相关专业\n2. 熟悉网络技术\n3. 能够解决常见网络问题\n4. 工作时间灵活', '每小时25元,紧急出勤有额外补贴', '孙老师', '13800138005', 1004, '信息学院', 'RECRUITING', 1, 1, '000000'); -- ===================================================== -- 2. 插入测试申请数据 -- ===================================================== -- 2.1 张三申请图书馆助理管理员 INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000101, 1736000000000000001, '图书馆助理管理员', 2001001, '张三', '2023001001', 1001, '文学院', '汉语言文学', '2023', '汉语言文学1班', '13900139001', 'zhangsan@example.com', '我热爱读书,熟悉图书分类,希望能在图书馆工作,为同学们提供更好的服务。同时也能减轻家庭经济负担。', 'SUBMITTED', '2025-01-03 09:00:00', 2001001, 2001001, '000000'); -- 2.2 李四申请实验室设备维护 INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000102, 1736000000000000002, '实验室设备维护', 2002001, '李四', '2023002001', 1002, '理学院', '物理学', '2023', '物理学1班', '13900139002', 'lisi@example.com', '我是物理专业学生,对实验设备比较了解,有维修电子设备的经验,希望能申请这个岗位。', 'SUBMITTED', '2025-01-03 10:00:00', 2002001, 2002001, '000000'); -- 2.3 王五申请学生宿舍管理助理 INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000103, 1736000000000000003, '学生宿舍管理助理', 2003001, '王五', '2023003001', 1004, '管理学院', '工商管理', '2023', '工商管理1班', '13900139003', 'wangwu@example.com', '我性格开朗,善于与人沟通,希望能为同学们的宿舍生活提供帮助,同时锻炼自己的管理能力。', 'SUBMITTED', '2025-01-03 11:00:00', 2003001, 2003001, '000000'); -- 2.4 赵六申请教学助理 INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000104, 1736000000000000004, '教学助理', 2001002, '赵六', '2023001002', 1001, '文学院', '汉语言文学', '2023', '汉语言文学2班', '13900139004', 'zhaoliu@example.com', '我的学习成绩优秀,有良好的表达能力,希望能帮助老师进行教学工作,同时提升自己的能力。', 'COLLEGE_REVIEWING', '2025-01-03 12:00:00', 2001002, 2001002, '000000'); -- 2.5 孙七申请校园网络维护 INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `college_review_status`, `college_review_time`, `college_reviewer_id`, `college_reviewer_name`, `college_review_comment`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000105, 1736000000000000005, '校园网络维护', 2004001, '孙七', '2023004001', 1004, '信息学院', '计算机科学与技术', '2023', '计算机1班', '13900139005', 'sunqi@example.com', '我是计算机专业学生,熟悉网络技术,有实际网络维护经验,能够解决各种网络问题。', 'COLLEGE_PASSED', '2025-01-03 13:00:00', 'PASSED', '2025-01-03 15:00:00', 3001, '信息学院审核老师', '该学生专业技能扎实,推荐通过。', 2004001, 2004001, '000000'); -- 2.6 周八申请图书馆助理管理员(已审核通过) INSERT INTO `jcbt_work_study_application` (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`, `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`, `application_reason`, `status`, `application_date`, `college_review_status`, `college_review_time`, `college_reviewer_id`, `college_reviewer_name`, `college_review_comment`, `final_review_status`, `final_review_time`, `final_reviewer_id`, `final_reviewer_name`, `final_review_comment`, `work_start_date`, `work_end_date`, `create_by`, `update_by`, `tenant_id`) VALUES (1736000000000000106, 1736000000000000001, '图书馆助理管理员', 2002002, '周八', '2023002002', 1002, '理学院', '数学与应用数学', '2023', '数学1班', '13900139006', 'zhouba@example.com', '我有良好的组织能力和服务意识,希望能在图书馆为同学们提供优质服务。', 'APPROVED', '2025-01-02 14:00:00', 'PASSED', '2025-01-02 16:00:00', 3002, '理学院审核老师', '学生表现优秀,同意申请。', 'PASSED', '2025-01-02 18:00:00', 4001, '学生处终审老师', '经终审,同意该学生申请。', '2025-01-05', '2025-06-30', 2002002, 2002002, '000000'); -- ===================================================== -- 3. 更新岗位当前申请通过人数 -- ===================================================== -- 更新图书馆助理管理员岗位的当前人数 UPDATE `jcbt_work_study_position` SET `current_count` = 1, `update_time` = NOW() WHERE `id` = 1736000000000000001; -- ===================================================== -- 4. 查询验证数据 -- ===================================================== -- 4.1 查询岗位数据 SELECT position_name as '岗位名称', position_scope as '发布范围', required_count as '需求人数', current_count as '当前人数', status as '状态', college_name as '发布学院' FROM jcbt_work_study_position WHERE deleted = 0; -- 4.2 查询申请数据 SELECT student_name as '学生姓名', position_name as '申请岗位', status as '申请状态', college_name as '学生学院', application_date as '申请时间' FROM jcbt_work_study_application WHERE deleted = 0 ORDER BY application_date; -- ===================================================== -- 5. 脚本执行完成提示 -- ===================================================== SELECT 'JCBT勤工俭学模块测试数据插入完成!' AS '执行结果'; SELECT (SELECT COUNT(*) FROM jcbt_work_study_position WHERE deleted = 0) AS '岗位数量', (SELECT COUNT(*) FROM jcbt_work_study_application WHERE deleted = 0) AS '申请数量';