[ Feature ] - 확정된 근무일지도 정산 진행 전(PENDING)이면 수정 가능하도록 변경 - #194
Merged
Conversation
added 2 commits
August 20, 2026 09:42
- WorkLogService.editWorkLog: CONFIRMED 상태라도 settlementStatus가 PENDING
(아직 어느 플랫폼도 정산되지 않은 상태)이면 수정을 허용. PARTIAL/COMPLETED
(실제 입금과 매칭된 상태)는 기존처럼 계속 차단해 정산 데이터 정합성을 보존
- CONFIRMED 상태 수정 시 잡/시간/건수 변경으로 소득이 달라질 수 있어
기존 WORK_LOG_PLATFORM_INCOME을 지우고 새로 재배분, settlementStatus도 재계산
- PER_TASK 잡으로 수정되는 경우 taskCount 필수 검증 추가
- WorkErrorCode: WORK_LOG_SETTLEMENT_IN_PROGRESS 에러코드 신설
(기존 WORK_LOG_ALREADY_CONFIRMED는 confirmWorkLog의 "이미 확정된 걸 재확정"
케이스 전용으로 의미 분리)
- WorkLogServiceTest: 정산 진행(COMPLETED)된 확정 근무일지는 여전히 수정 불가,
PENDING인 확정 근무일지는 수정 가능, 수정 시 소득/플랫폼배분 재계산되는지
검증하는 테스트 추가
- CalendarWorkBrief(하루 상세 works[])에 taskCount, fatigue 필드 추가
- CalendarService.getDailySummary: works[] 생성 시 WorkLog의 taskCount,
fatigue를 함께 채워서 내려주도록 변경
- 확정된 근무일지 수정 화면에서 기존 값을 채워 넣으려면 필요한데
지금까지 안 내려가고 있었음
- CalendarServiceTest: fatigue가 works[]에 채워지는지 검증 추가
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.
관련 이슈
작업 사항
WorkLogService.editWorkLog: CONFIRMED 상태라도settlementStatus == PENDING(아직 어느 플랫폼도 정산되지 않은 상태)이면 수정을 허용하도록 변경.
PARTIAL/COMPLETED(실제 입금과 매칭된 상태)는 기존처럼 계속 차단해정산 데이터 정합성 보존
기존
WORK_LOG_PLATFORM_INCOME을 지우고 새로 재배분,settlementStatus도 재계산taskCount필수 검증 추가WorkErrorCode:WORK_LOG_SETTLEMENT_IN_PROGRESS에러코드 신설(기존
WORK_LOG_ALREADY_CONFIRMED는confirmWorkLog의 "이미 확정된 걸재확정"하는 케이스 전용으로 의미 분리)
CalendarWorkBrief(하루 상세works[])에taskCount,fatigue필드 추가안 내려가고 있었음
WorkLogServiceTest: 정산 진행(COMPLETED)된 확정 근무일지는 여전히 수정불가, PENDING인 확정 근무일지는 수정 가능, 수정 시 소득/플랫폼배분이
재계산되는지 검증하는 테스트 추가
CalendarServiceTest:fatigue가works[]에 채워지는지 검증 추가