#!/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}")