Commit Graph
7 Commits
Author SHA1 Message Date
hongjianli a68d0200d1 feat: Complete integration test - Real database testing with H2
- Add H2 database and MyBatis Test dependencies
- Create complete schema-test.sql with all 9 tables
- Create application-test.yml with proper configuration
- Create MapperIntegrationTest with 3 real database tests
- Fix ApplicationContext loading issues (bean conflicts, circular dependencies)
- Add missing fields: order_id, remark, member_count
- Fix data types: gender INT instead of VARCHAR

Test Results:
✓ Test 1: Batch query 30 athletes in 21ms (1 query vs 30 queries)
✓ Test 2: Complete N+1 optimization in 78ms (4 queries vs 30+ queries)
✓ Test 3: Performance comparison - batch is faster than N+1

This proves our Phase 4 optimization works in real database!
Total tests: 469 (466 + 3 integration tests)
All tests passing!
2026-01-18 12:18:30 +08:00
hongjianliandfactory-droid[bot] 776e9e289d Add comprehensive test suite (427 tests)
- Google Standard: MartialScoreServiceImplTest, MartialResultServiceImplTest, MartialSchedulePlanServiceImplTest
- Apple Standard: MartialScoreServiceAppleTest, MartialResultServiceAppleTest
- Alibaba Standard: MartialScoreServiceAliTest, MartialResultServiceAliTest
- OpenAI Standard: MartialScoreServiceOpenAITest, MartialResultServiceOpenAITest (Property-Based, Fuzzing, Invariant, Regression, Contract tests)
- Add TEST_PLAN.md documentation
- Update pom.xml with maven-surefire-plugin 3.2.5

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-01-16 19:17:17 +08:00
hongjianli d583bdc5c8 feat: 集成Flyway数据库迁移工具
- 添加Flyway依赖到pom.xml
- 配置application.yml启用Flyway
- 创建迁移脚本目录db/migration
- 添加V1基线脚本和V2项目字段迁移脚本
- 添加DATABASE_MIGRATION.md使用文档
2025-12-29 14:07:27 +08:00
hongjianli 6aeb522f24 fix bugs 2025-11-30 12:07:18 +08:00
n72595987@gmail.comandClaude 38472ee832 优化后端配置和数据库结构
1. 修复Swagger配置,添加武术模块API分组
   - 在SwaggerConfiguration中新增martialApi()方法
   - 使武术模块的66个接口能在Knife4j界面正常显示

2. 优化项目依赖配置
   - 添加spring-boot-starter-actuator用于健康检查
   - 暂时注释flowable工作流依赖以简化项目

3. 更新数据库结构
   - 优化martial_db.sql,精简表结构从123张减少到53张
   - 保留核心BladeX系统表和15张武术业务表
   - 更新测试数据:2场比赛、10名运动员、9个项目

4. 补充项目文档
   - 添加架构说明、开发指南等中文文档

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:30:20 +08:00
hongjianli 109f226371 fix bugs 2025-11-29 15:03:33 +08:00
hongjianli 3b097b5f63 fix bugs 2025-11-28 16:17:55 +08:00