主要更新: - 更新所有12个产业的教务系统数据和功能 - 删除所有 node_modules 文件夹(节省3.7GB) - 删除所有 .yoyo 缓存文件夹(节省1.2GB) - 删除所有 dist 构建文件(节省55MB) 项目优化: - 项目大小从 8.1GB 减少到 3.2GB(节省60%空间) - 保留完整的源代码和配置文件 - .gitignore 已配置,防止再次提交大文件 启动脚本: - start-industry.sh/bat/ps1 脚本会自动检测并安装依赖 - 首次启动时自动运行 npm install - 支持单个或批量启动产业系统 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
2.0 KiB
JavaScript
43 lines
2.0 KiB
JavaScript
import companyJobsNewData from "./src/data/companyJobsNew.json" with { type: "json" };
|
|
import companyImagesData from "./网页未导入数据/智能制造产业/智能制造_内推岗位企业图片.json" with { type: "json" };
|
|
|
|
console.log("=== 岗位与图片数据匹配检查 ===\n");
|
|
|
|
// 从岗位数据中提取所有岗位名称
|
|
const jobPositions = companyJobsNewData.map(job => job["内推岗位名称"]);
|
|
console.log("岗位数据中的总岗位数:", jobPositions.length);
|
|
|
|
// 从图片数据中提取所有岗位名称
|
|
const imagePositions = companyImagesData.map(img => img["内推岗位名称"]);
|
|
console.log("图片数据中的总岗位数:", imagePositions.length);
|
|
|
|
console.log("\n=== 图片数据中的岗位 ===");
|
|
console.log(imagePositions.join("\n"));
|
|
|
|
console.log("\n=== 岗位数据中有图片的岗位 ===");
|
|
const matchedPositions = jobPositions.filter(pos => imagePositions.includes(pos));
|
|
console.log("匹配成功的岗位数:", matchedPositions.length);
|
|
console.log(matchedPositions.join("\n"));
|
|
|
|
console.log("\n=== 图片数据中有但岗位数据中没有的岗位 ===");
|
|
const unmatchedInImages = imagePositions.filter(pos => !jobPositions.includes(pos));
|
|
console.log("数量:", unmatchedInImages.length);
|
|
if (unmatchedInImages.length > 0) {
|
|
console.log(unmatchedInImages.join("\n"));
|
|
}
|
|
|
|
console.log("\n=== 岗位数据中没有匹配到图片的岗位 ===");
|
|
const unmatchedInJobs = jobPositions.filter(pos => !imagePositions.includes(pos));
|
|
console.log("数量:", unmatchedInJobs.length);
|
|
if (unmatchedInJobs.length > 0) {
|
|
console.log(unmatchedInJobs.join("\n"));
|
|
}
|
|
|
|
console.log("\n=== 详细对比前10个岗位 ===");
|
|
jobPositions.slice(0, 10).forEach((jobPos, index) => {
|
|
const hasImage = imagePositions.includes(jobPos);
|
|
const imageCount = hasImage ?
|
|
companyImagesData.find(img => img["内推岗位名称"] === jobPos)["BOSS照片链接"].split(',').length : 0;
|
|
console.log(`${index + 1}. ${jobPos}: ${hasImage ? `✅ ${imageCount}张图片` : '❌ 无图片'}`);
|
|
});
|