Files
online_sys/frontend_智能开发/updateInterviewStatus.cjs
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

59 lines
1.7 KiB
JavaScript
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.

const fs = require('fs');
// 读取智能开发内推岗位数据
const smartDevJobs = JSON.parse(
fs.readFileSync('./网页未导入数据/智能开发产业/智能开发内推岗位.json', 'utf-8')
);
// 创建面试状态数据 - 为部分岗位添加面试状态
const interviewStatuses = [];
// 定义一些面试状态模板
const statusTemplates = [
{
"阶段日期": "收到Offer2025/9/14 16:17",
"面试状态": "已收到Offer请于2天内答复"
},
{
"阶段日期": "终面2025/9/12 15:30",
"面试状态": "终面已通过等待发放Offer"
},
{
"阶段日期": "复试2025/9/10 14:00",
"面试状态": "复试已通过,安排终面中"
},
{
"阶段日期": "初试2025/9/8 10:00",
"面试状态": "初试已通过,准备复试"
},
{
"阶段日期": "简历投递2025/9/6 09:30",
"面试状态": "简历已投递,等待初试通知"
}
];
// 为前10个岗位添加不同的面试状态
smartDevJobs.slice(0, 10).forEach((job, index) => {
if (index < statusTemplates.length) {
interviewStatuses.push({
"查询岗位名称": job["内推岗位名称"],
...statusTemplates[index]
});
}
});
// 写入文件
fs.writeFileSync(
'./src/data/interviewStatus.json',
JSON.stringify(interviewStatuses, null, 2),
'utf-8'
);
console.log('✅ 面试状态数据更新成功!');
console.log(`- 共创建 ${interviewStatuses.length} 个面试状态记录`);
// 输出示例
console.log('\n面试状态示例');
interviewStatuses.slice(0, 3).forEach((status, index) => {
console.log(` ${index + 1}. ${status["查询岗位名称"]} - ${status["面试状态"]}`);
});