Files
svn-log-tool/scripts/test_multifile_processor.sh
liumangmang a6817fd9bf feat(core): 添加SVN日志查询工具和DeepSeek AI处理功能
- 实现SVN日志查询工具,支持版本范围和用户过滤
- 添加DeepSeek API集成,用于AI分析日志内容
- 创建Excel生成器,输出工作量统计报表
- 添加日志实体类和项目配置管理功能
- 集成POI库支持Excel文件操作
- 实现Markdown格式日志导出功能
2026-02-05 09:11:17 +08:00

106 lines
2.8 KiB
Bash
Executable File
Raw 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.
#!/bin/bash
# 测试多文件处理功能
# 注意:此脚本需要有效的 DeepSeek API Key 才能完成测试
cd /home/liumangmang/opencode/日志
echo "==========================================="
echo " 测试 DeepSeek 日志分析工具"
echo "==========================================="
echo ""
# 检查是否有日志文件
md_files=$(find . -maxdepth 1 -name "svn_log_*.md" | wc -l)
if [ "$md_files" -eq 0 ]; then
echo "警告: 当前目录没有找到 svn_log_*.md 文件"
echo "请先使用 Main.java 生成日志文件"
echo ""
echo "或者手动创建测试文件..."
# 创建测试文件
cat > test_project1.md << 'EOF'
# SVN 日志报告
## 查询条件
- **SVN地址**: `https://test.svn.com/project1`
- **账号**: `testuser`
- **版本范围**: r1 - r10
- **生成时间**: 2026-01-30
## 统计信息
- **总记录数**: 2 条
## 日志详情
### r10
**作者**: `liujing@SZNARI`
**时间**: 2026-01-27 10:00:00
**版本**: r10
**提交信息**:
feat: 添加用户登录功能
### r9
**作者**: `liujing@SZNARI`
**时间**: 2026-01-26 15:00:00
**版本**: r9
**提交信息**:
fix: 修复登录页面样式问题
EOF
cat > test_project2.md << 'EOF'
# SVN 日志报告
## 查询条件
- **SVN地址**: `https://test.svn.com/project2`
- **账号**: `testuser`
- **版本范围**: r1 - r10
- **生成时间**: 2026-01-30
## 统计信息
- **总记录数**: 1 条
## 日志详情
### r8
**作者**: `liujing@SZNARI`
**时间**: 2026-01-25 14:00:00
**版本**: r8
**提交信息**:
refactor: 优化数据库查询性能
EOF
echo "已创建测试文件: test_project1.md, test_project2.md"
fi
echo ""
echo "当前目录下的日志文件:"
ls -lh svn_log_*.md test_*.md 2>/dev/null || echo " (无文件)"
echo ""
echo "==========================================="
echo " 程序使用说明"
echo "==========================================="
echo ""
echo "要运行 DeepSeek 日志分析工具,请执行:"
echo ""
echo " cd /home/liumangmang/opencode/日志"
echo " java -jar svn-log-tool/target/svn-log-tool-1.0.0-jar-with-dependencies.jar"
echo ""
echo "然后按提示输入:"
echo " 1. 日志文件所在目录路径(回车使用当前目录)"
echo " 2. 工作周期例如2025年12月"
echo " 3. DeepSeek API Key"
echo " 4. 输出 Excel 文件名(回车使用默认)"
echo ""
echo "程序将自动读取目录中的所有 .md 文件,合并后发送给 DeepSeek API 分析,"
echo "并生成包含多项目工作内容的 Excel 文件。"
echo ""
echo "Excel 输出格式(与参考文件一致):"
echo " - 7列序号、所属班组、技术对接、开发人员、工作周期、开发项目名称、具体工作内容"
echo " - 项目名称用 / 分隔PRS7050/PRS7950"
echo " - 工作内容用 # 标识不同项目"
echo ""