Files
ALL-teach_sys/frontend_土木水利/apply_resume_updates.py
KQL cd2e307402 初始化12个产业教务系统项目
主要内容:
- 包含12个产业的完整教务系统前端代码
- 智能启动脚本 (start-industry.sh)
- 可视化产业导航页面 (index.html)
- 项目文档 (README.md)

优化内容:
- 删除所有node_modules和.yoyo文件夹,从7.5GB减少到2.7GB
- 添加.gitignore文件避免上传不必要的文件
- 自动依赖管理和智能启动系统

产业列表:
1. 文旅产业 (5150)
2. 智能制造 (5151)
3. 智能开发 (5152)
4. 财经商贸 (5153)
5. 视觉设计 (5154)
6. 交通物流 (5155)
7. 大健康 (5156)
8. 土木水利 (5157)
9. 食品产业 (5158)
10. 化工产业 (5159)
11. 能源产业 (5160)
12. 环保产业 (5161)

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-24 14:14:14 +08:00

72 lines
2.9 KiB
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import re
# 读取数据
with open('resume_updates.json', 'r', encoding='utf-8') as f:
updates = json.load(f)
# 读取当前的resumeInterviewMock.js文件
with open('src/mocks/resumeInterviewMock.js', 'r', encoding='utf-8') as f:
content = f.read()
# 定义需要更新的岗位和其所属行业
position_mapping = {
'露营地运营专员': '露营地运营', # 需要创建新行业
'文创产品设计师': '文旅产品设计',
'文创产品策划师': '文旅产品设计',
'文创产品设计师助理': '文旅产品设计',
'品牌策划运营专员': '品牌运营',
'品牌公关': '品牌运营',
'品牌推广专员': '品牌运营',
'ip运营': '品牌运营',
'IP运营总监助理': '品牌运营',
'品牌公关管培生': '品牌运营'
}
# 生成更新代码
for update in updates:
position = update['position']
student_info = update['studentInfo']
# 清理数据中的额外空格和错误文本
if student_info['project_experience']['project_name']:
student_info['project_experience']['project_name'] = student_info['project_experience']['project_name'].strip()
if student_info['project_experience']['position']:
student_info['project_experience']['position'] = student_info['project_experience']['position'].strip()
if student_info['project_experience']['time_period']:
student_info['project_experience']['time_period'] = student_info['project_experience']['time_period'].strip()
if student_info['project_experience']['company']:
student_info['project_experience']['company'] = student_info['project_experience']['company'].strip()
# 清理core_skills中的错误文本
cleaned_core_skills = []
for skill in student_info['core_skills']:
# 移除开头的"chubu "等错误文本
skill = re.sub(r'^chubu\s+', '', skill)
skill = skill.strip()
if skill:
cleaned_core_skills.append(skill)
student_info['core_skills'] = cleaned_core_skills
# 清理compound_skills
cleaned_compound_skills = []
for skill in student_info['compound_skills']:
skill = skill.strip()
if skill:
cleaned_compound_skills.append(skill)
student_info['compound_skills'] = cleaned_compound_skills
print(f"\n处理岗位: {position}")
print(f" - 项目名称: {student_info['project_experience']['project_name']}")
print(f" - 核心技能数: {len(student_info['core_skills'])}")
print(f" - 复合技能数: {len(student_info['compound_skills'])}")
print(f" - 个人总结长度: {len(student_info['personal_summary'])}")
# 保存清理后的数据
with open('resume_updates_cleaned.json', 'w', encoding='utf-8') as f:
json.dump(updates, f, ensure_ascii=False, indent=2)
print("\n数据清理完成,保存到 resume_updates_cleaned.json")