勤工俭学测试数据.sql 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. -- =====================================================
  2. -- 勤工俭学管理系统测试数据脚本
  3. -- 项目: 校园管理系统 - 勤工俭学模块
  4. -- 版本: v1.0
  5. -- 创建时间: 2025-01-03
  6. -- =====================================================
  7. -- 设置字符集
  8. SET NAMES utf8mb4;
  9. -- =====================================================
  10. -- 1. 插入测试岗位数据
  11. -- =====================================================
  12. -- 1.1 图书馆助理管理员岗位
  13. INSERT INTO `jcbt_work_study_position`
  14. (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`,
  15. `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`,
  16. `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`)
  17. VALUES
  18. (1736000000000000001, '图书馆助理管理员', 'UNIVERSITY', 5, '周一至周五 14:00-17:00', '2025-01-03', '2025-06-30',
  19. '1. 大二及以上年级\n2. 学习成绩良好\n3. 责任心强,工作认真\n4. 熟悉图书分类和管理',
  20. '每小时15元,按实际工作时间计算', '张老师', '13800138001',
  21. 1001, '文学院', 'RECRUITING', 1, 1, '000000');
  22. -- 1.2 实验室设备维护岗位
  23. INSERT INTO `jcbt_work_study_position`
  24. (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`,
  25. `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`,
  26. `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`)
  27. VALUES
  28. (1736000000000000002, '实验室设备维护', 'COLLEGE', 2, '周三、周五 16:00-18:00', '2025-01-03', '2025-05-31',
  29. '1. 理工科专业学生\n2. 有基础的设备维护经验\n3. 动手能力强\n4. 能吃苦耐劳',
  30. '每小时18元,有技术补贴', '李老师', '13800138002',
  31. 1002, '理学院', 'RECRUITING', 1, 1, '000000');
  32. -- 1.3 学生宿舍管理助理岗位
  33. INSERT INTO `jcbt_work_study_position`
  34. (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`,
  35. `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`,
  36. `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`)
  37. VALUES
  38. (1736000000000000003, '学生宿舍管理助理', 'UNIVERSITY', 8, '周一至周日轮班,每次4小时', '2025-01-03', '2025-07-31',
  39. '1. 品行端正,无违纪记录\n2. 沟通能力强\n3. 能适应轮班工作\n4. 有服务意识',
  40. '每小时12元,夜班有补贴', '王老师', '13800138003',
  41. 1003, '学生处', 'RECRUITING', 1, 1, '000000');
  42. -- 1.4 教学助理岗位
  43. INSERT INTO `jcbt_work_study_position`
  44. (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`,
  45. `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`,
  46. `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`)
  47. VALUES
  48. (1736000000000000004, '教学助理', 'COLLEGE', 3, '周二、周四 10:00-12:00', '2025-01-03', '2025-06-15',
  49. '1. 本专业学生\n2. 学习成绩优秀\n3. 表达能力强\n4. 有耐心和责任心',
  50. '每小时20元,期末有奖励', '赵老师', '13800138004',
  51. 1001, '文学院', 'RECRUITING', 1, 1, '000000');
  52. -- 1.5 校园网络维护岗位
  53. INSERT INTO `jcbt_work_study_position`
  54. (`id`, `position_name`, `position_scope`, `required_count`, `work_time`, `start_date`, `end_date`,
  55. `position_requirements`, `salary_info`, `contact_teacher`, `contact_phone`,
  56. `college_id`, `college_name`, `status`, `create_by`, `update_by`, `tenant_id`)
  57. VALUES
  58. (1736000000000000005, '校园网络维护', 'UNIVERSITY', 4, '周一至周五随时待命', '2025-01-03', '2025-12-31',
  59. '1. 计算机相关专业\n2. 熟悉网络技术\n3. 能够解决常见网络问题\n4. 工作时间灵活',
  60. '每小时25元,紧急出勤有额外补贴', '孙老师', '13800138005',
  61. 1004, '信息学院', 'RECRUITING', 1, 1, '000000');
  62. -- =====================================================
  63. -- 2. 插入测试申请数据
  64. -- =====================================================
  65. -- 2.1 张三申请图书馆助理管理员
  66. INSERT INTO `jcbt_work_study_application`
  67. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  68. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  69. `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`)
  70. VALUES
  71. (1736000000000000101, 1736000000000000001, '图书馆助理管理员', 2001001, '张三', '2023001001',
  72. 1001, '文学院', '汉语言文学', '2023', '汉语言文学1班', '13900139001', 'zhangsan@example.com',
  73. '我热爱读书,熟悉图书分类,希望能在图书馆工作,为同学们提供更好的服务。同时也能减轻家庭经济负担。',
  74. 'SUBMITTED', '2025-01-03 09:00:00', 2001001, 2001001, '000000');
  75. -- 2.2 李四申请实验室设备维护
  76. INSERT INTO `jcbt_work_study_application`
  77. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  78. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  79. `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`)
  80. VALUES
  81. (1736000000000000102, 1736000000000000002, '实验室设备维护', 2002001, '李四', '2023002001',
  82. 1002, '理学院', '物理学', '2023', '物理学1班', '13900139002', 'lisi@example.com',
  83. '我是物理专业学生,对实验设备比较了解,有维修电子设备的经验,希望能申请这个岗位。',
  84. 'SUBMITTED', '2025-01-03 10:00:00', 2002001, 2002001, '000000');
  85. -- 2.3 王五申请学生宿舍管理助理
  86. INSERT INTO `jcbt_work_study_application`
  87. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  88. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  89. `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`)
  90. VALUES
  91. (1736000000000000103, 1736000000000000003, '学生宿舍管理助理', 2003001, '王五', '2023003001',
  92. 1004, '管理学院', '工商管理', '2023', '工商管理1班', '13900139003', 'wangwu@example.com',
  93. '我性格开朗,善于与人沟通,希望能为同学们的宿舍生活提供帮助,同时锻炼自己的管理能力。',
  94. 'SUBMITTED', '2025-01-03 11:00:00', 2003001, 2003001, '000000');
  95. -- 2.4 赵六申请教学助理
  96. INSERT INTO `jcbt_work_study_application`
  97. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  98. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  99. `application_reason`, `status`, `application_date`, `create_by`, `update_by`, `tenant_id`)
  100. VALUES
  101. (1736000000000000104, 1736000000000000004, '教学助理', 2001002, '赵六', '2023001002',
  102. 1001, '文学院', '汉语言文学', '2023', '汉语言文学2班', '13900139004', 'zhaoliu@example.com',
  103. '我的学习成绩优秀,有良好的表达能力,希望能帮助老师进行教学工作,同时提升自己的能力。',
  104. 'COLLEGE_REVIEWING', '2025-01-03 12:00:00', 2001002, 2001002, '000000');
  105. -- 2.5 孙七申请校园网络维护
  106. INSERT INTO `jcbt_work_study_application`
  107. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  108. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  109. `application_reason`, `status`, `application_date`, `college_review_status`, `college_review_time`,
  110. `college_reviewer_id`, `college_reviewer_name`, `college_review_comment`,
  111. `create_by`, `update_by`, `tenant_id`)
  112. VALUES
  113. (1736000000000000105, 1736000000000000005, '校园网络维护', 2004001, '孙七', '2023004001',
  114. 1004, '信息学院', '计算机科学与技术', '2023', '计算机1班', '13900139005', 'sunqi@example.com',
  115. '我是计算机专业学生,熟悉网络技术,有实际网络维护经验,能够解决各种网络问题。',
  116. 'COLLEGE_PASSED', '2025-01-03 13:00:00', 'PASSED', '2025-01-03 15:00:00',
  117. 3001, '信息学院审核老师', '该学生专业技能扎实,推荐通过。',
  118. 2004001, 2004001, '000000');
  119. -- 2.6 周八申请图书馆助理管理员(已审核通过)
  120. INSERT INTO `jcbt_work_study_application`
  121. (`id`, `position_id`, `position_name`, `student_id`, `student_name`, `student_number`,
  122. `college_id`, `college_name`, `major`, `grade`, `class_name`, `phone`, `email`,
  123. `application_reason`, `status`, `application_date`,
  124. `college_review_status`, `college_review_time`, `college_reviewer_id`, `college_reviewer_name`, `college_review_comment`,
  125. `final_review_status`, `final_review_time`, `final_reviewer_id`, `final_reviewer_name`, `final_review_comment`,
  126. `work_start_date`, `work_end_date`,
  127. `create_by`, `update_by`, `tenant_id`)
  128. VALUES
  129. (1736000000000000106, 1736000000000000001, '图书馆助理管理员', 2002002, '周八', '2023002002',
  130. 1002, '理学院', '数学与应用数学', '2023', '数学1班', '13900139006', 'zhouba@example.com',
  131. '我有良好的组织能力和服务意识,希望能在图书馆为同学们提供优质服务。',
  132. 'APPROVED', '2025-01-02 14:00:00',
  133. 'PASSED', '2025-01-02 16:00:00', 3002, '理学院审核老师', '学生表现优秀,同意申请。',
  134. 'PASSED', '2025-01-02 18:00:00', 4001, '学生处终审老师', '经终审,同意该学生申请。',
  135. '2025-01-05', '2025-06-30',
  136. 2002002, 2002002, '000000');
  137. -- =====================================================
  138. -- 3. 更新岗位当前申请通过人数
  139. -- =====================================================
  140. -- 更新图书馆助理管理员岗位的当前人数
  141. UPDATE `jcbt_work_study_position`
  142. SET `current_count` = 1, `update_time` = NOW()
  143. WHERE `id` = 1736000000000000001;
  144. -- =====================================================
  145. -- 4. 查询验证数据
  146. -- =====================================================
  147. -- 4.1 查询岗位数据
  148. SELECT
  149. position_name as '岗位名称',
  150. position_scope as '发布范围',
  151. required_count as '需求人数',
  152. current_count as '当前人数',
  153. status as '状态',
  154. college_name as '发布学院'
  155. FROM jcbt_work_study_position
  156. WHERE deleted = 0;
  157. -- 4.2 查询申请数据
  158. SELECT
  159. student_name as '学生姓名',
  160. position_name as '申请岗位',
  161. status as '申请状态',
  162. college_name as '学生学院',
  163. application_date as '申请时间'
  164. FROM jcbt_work_study_application
  165. WHERE deleted = 0
  166. ORDER BY application_date;
  167. -- =====================================================
  168. -- 5. 脚本执行完成提示
  169. -- =====================================================
  170. SELECT 'JCBT勤工俭学模块测试数据插入完成!' AS '执行结果';
  171. SELECT
  172. (SELECT COUNT(*) FROM jcbt_work_study_position WHERE deleted = 0) AS '岗位数量',
  173. (SELECT COUNT(*) FROM jcbt_work_study_application WHERE deleted = 0) AS '申请数量';