Files
ALL-teach_sys/frontend_财经商贸/checkDuplicateCourses.cjs
KQL 38350dca36 更新12个教务系统并优化项目大小
主要更新:
- 更新所有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>
2025-10-17 14:36:25 +08:00

49 lines
1.4 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 data = JSON.parse(fs.readFileSync('src/data/financeCalendar.json'));
// 查找同一天有多个相同类型课程的日期
const dateMap = {};
data.forEach(course => {
const date = course['日期'];
const type = course['课程阶段(公共课)'];
if (type === '终生学习系统' || type === '营销能力课') {
if (!dateMap[date]) {
dateMap[date] = [];
}
dateMap[date].push({
name: course['公共课'],
type: type,
time: course['上课时间']
});
}
});
// 找出有重复的日期
console.log('检查AI课程和营销能力课是否有重复\n');
let hasDuplicate = false;
Object.keys(dateMap).forEach(date => {
const courses = dateMap[date];
if (courses.length > 1) {
hasDuplicate = true;
console.log('日期: ' + date);
courses.forEach(c => {
console.log(' - ' + c.type + ': ' + c.name + ' (' + c.time + ')');
});
console.log('');
}
});
if (!hasDuplicate) {
console.log('没有发现同一天有多个AI课程或营销能力课');
}
// 统计总数
const aiCourses = data.filter(c => c['课程阶段(公共课)'] === '终生学习系统');
const marketingCourses = data.filter(c => c['课程阶段(公共课)'] === '营销能力课');
console.log('\n统计信息');
console.log('AI课程终生学习系统总数', aiCourses.length);
console.log('营销能力课总数:', marketingCourses.length);