Phase 2, Step 2.10: Complete service integration
- Add missing MartialScheduleParticipant import
- Fix all compilation errors in ScheduleDispatchServiceImpl
- All 443 tests passing
- BUILD SUCCESS
Related to Phase 2 refactoring plan
Phase 2, Step 2.10: Integrate remaining services
- Add IScheduleDispatchService dependency to MartialScheduleServiceImpl
- Add IScheduleStatusService dependency to MartialScheduleServiceImpl
- Fix duplicate dependency in ScheduleDispatchServiceImpl
- Note: Compilation errors to be fixed in IDE
Related to Phase 2 refactoring plan
Phase 2, Step 2.8: Prepare for arrangement service integration
- Add IScheduleArrangeService dependency with @Autowired
- Add import statement for IScheduleArrangeService
- Keep original methods intact for backward compatibility
- All 443 tests passing
Related to Phase 2 refactoring plan
Phase 2, Step 2.7: Extract arrangement logic from MartialScheduleServiceImpl
- Implement saveDraftSchedule method (160 lines) with complete business logic
- Implement saveAndLockSchedule method (53 lines) with locking logic
- Implement moveScheduleGroup method (58 lines) with group movement logic
- Total: 271 lines of arrangement logic extracted
- All 443 tests passing
Related to Phase 2 refactoring plan
Phase 2, Step 2.6: Delegate query method to ScheduleQueryService
- Add IScheduleQueryService dependency with @Autowired
- Replace getScheduleResult method body with service delegation
- Remove 135 lines of query logic from MartialScheduleServiceImpl
- Maintain method signature for backward compatibility
- All 443 tests passing
Related to Phase 2 refactoring plan
Phase 2, Step 2.4: Delegate export methods to ScheduleExportService
- Add IScheduleExportService dependency with @Autowired
- Replace exportSchedule method body with service delegation
- Replace exportScheduleTemplate2 method body with service delegation
- Maintain method signatures for backward compatibility
- All 443 tests passing
Related to Phase 2 refactoring plan
Phase 1, Step 1.3.3: Delegate scoring to service layer
- Add IMiniScoringService dependency to controller
- Replace 43 lines of business logic with service call
- Controller now delegates scoring to service
- All tests passing
Related to Phase 1 refactoring plan
Phase 1, Step 1.2.3: Delegate login to service layer
- Add IMiniAuthService dependency to controller
- Replace 95 lines of business logic with service call
- Controller now only handles HTTP layer
- All tests passing
Related to Phase 1 refactoring plan
- Remove deprecated wrapper methods (generateTimeSlots, autoGroupParticipants, etc.)
- Update autoArrange() to call services directly
- Final class size: 288 lines (75% reduction from original 1148 lines)
- All 438 tests passing
Closes#11 - God Class refactoring complete
- Create ScheduleQueryService in schedule/query/
- Delegate getUnlockedCompetitions() and getScheduleResult() to new service
- Original class reduced from 502 to 342 lines (70% reduction from original 1148)
- All 438 tests passing
Related to Issue #11
- Create VenueAllocationService in schedule/allocation/
- Modify MartialScheduleArrangeServiceImpl to use VenueAllocationService
- Remove validateCapacity, assignVenueAndTimeSlot methods and SlotInfo class
- Original class reduced from 692 to ~500 lines
- All 438 tests passing
Related to Issue #11
- Create ScheduleGroupData model class in schedule/model/
- Create ParticipantGroupingService in schedule/grouping/
- Modify MartialScheduleArrangeServiceImpl to use ParticipantGroupingService
- Remove internal ScheduleGroupData class and grouping methods
- All 438 tests passing
Related to Issue #11
- Create TimeSlot model class in schedule/model/
- Create TimeSlotGenerator component in schedule/generator/
- Modify MartialScheduleArrangeServiceImpl to use TimeSlotGenerator
- Remove internal TimeSlot class (now standalone)
- Add 11 unit tests for TimeSlotGenerator
- All 438 tests passing
Related to Issue #11
- Add check for refereeType == 3 or role == general_judge before filtering by venue
- General judges now always get all projects for the competition
- Prevents issue where general judge assigned to a venue would see no projects
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
- batchGenerateInviteCode方法查询裁判的refereeType
- refereeType=1 自动设置为chief_judge(裁判长)
- 其他情况设置为judge(普通裁判)
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- BatchGenerateInviteDTO添加venueId和projects字段
- batchGenerateInviteCode方法传递venueId和projects给generateDto
- MartialMiniController添加competitionId参数过滤选手
- 新增RegistrationSubmitDTO
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>