- 包含4个产业方向的前端项目:智能开发、智能制造、大健康、财经商贸 - 已清理node_modules、.yoyo等大文件,项目大小从2.6GB优化至631MB - 配置完善的.gitignore文件 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import json
|
|
|
|
# 读取智能制造企业内推岗位数据
|
|
with open('src/data/companyJobsNew.json', 'r', encoding='utf-8') as f:
|
|
data = json.load(f)
|
|
|
|
# 修复字段名称
|
|
for job in data:
|
|
# 将"岗位招聘截止时间"改为"截止时间"
|
|
if '岗位招聘截止时间' in job:
|
|
job['截止时间'] = job['岗位招聘截止时间']
|
|
del job['岗位招聘截止时间']
|
|
|
|
# 确保截止时间格式正确(如果没有截止时间,设置默认值)
|
|
if '截止时间' not in job or not job['截止时间']:
|
|
job['截止时间'] = '2025/12/31'
|
|
|
|
# 添加缺失的"岗位标签"字段(如果没有)
|
|
if '岗位标签' not in job:
|
|
job['岗位标签'] = '就业'
|
|
|
|
# 写回文件
|
|
with open('src/data/companyJobsNew.json', 'w', encoding='utf-8') as f:
|
|
json.dump(data, f, ensure_ascii=False, indent=2)
|
|
|
|
print("✅ 修复完成!")
|
|
print(f"- 处理了 {len(data)} 个岗位")
|
|
print(f"- 第一个岗位的截止时间: {data[0].get('截止时间', '未设置')}")
|
|
print(f"- 字段名称已统一") |