Files
online_sys/frontend_大健康/convert_health_interview_status.py
KQL a7242f0c69 Initial commit: 教务系统在线平台
- 包含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>
2025-12-12 18:16:55 +08:00

31 lines
1.0 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
# 读取大健康岗位面试状态数据
with open('/Users/apple/Documents/cursor/教务系统/frontend_大健康/网页未导入数据/大健康产业/大健康岗位面试状态.json', 'r', encoding='utf-8') as f:
health_status = json.load(f)
# 转换数据格式
converted_status = []
for item in health_status:
# 构建阶段日期字符串
stage_date = f"{item['流程标签']}{item['流程时间']}"
# 构建面试状态字符串
interview_status = item['内容']
converted_status.append({
"查询岗位名称": item["查询岗位名称"],
"阶段日期": stage_date,
"面试状态": interview_status
})
# 保存转换后的数据
output_path = 'src/data/interviewStatus.json'
with open(output_path, 'w', encoding='utf-8') as f:
json.dump(converted_status, f, ensure_ascii=False, indent=2)
print(f"✅ 成功转换 {len(converted_status)} 条面试状态数据")
print(f"✅ 已保存到 {output_path}")