[Feature] 가상 정산 입금 배치(VirtualSettlementDepositService) 수동 실행 테스트 API 추가 - #223
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 사항
common에VirtualSettlementDepositBatchCommandClient인터페이스 추가 (기존SettlementBatchCommandClient와 동일한 위치·패턴)work-service에LocalVirtualSettlementDepositBatchCommandClient구현체 추가VirtualSettlementDepositService.processUser(userId, date)로 가상 입금을 생성한다.matchTargets) 그 자리에서 이어서SettlementService.processSettlementDetailed(userId, depositDate)까지 실행해, 실제 스케줄러(SettlementScheduler.runDailySettlementBatch)와 동일하게 생성→매칭 전체 흐름을 한 번에 확인할 수 있게 한다.bff-service에VirtualSettlementDepositTestController추가GET /internal/test/virtual-settlement/run?userId=&date=SettlementTestController/CodefSyncTestController와 동일하게 Swagger[테스트용]태그로 노출하고,SecurityConfig의 기존/internal/test/**permitAll을 그대로 재사용한다(신규 경로 추가 없음).api모듈에VirtualSettlementDepositEndToEndManualVerificationTest추가 (work-service·account-service를 모두 참조해야 해서DiagnosisFinalizationManualVerificationTest와 같은 이유로api모듈에 위치)ACCOUNT_TRANSACTION/ACCOUNT.balance/WORK_LOG_PLATFORM_INCOME/WORK_LOG/SETTLEMENT가 모두 기대한 값으로 갱신되는지 실제 DB 조회로 검증한다.