체류기간 만료 경과 긴급 확인 흐름 구현 - #198
Merged
Merged
Conversation
This was referenced Aug 16, 2026
hywznn
marked this pull request as ready for review
August 16, 2026 23:25
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.
왜 필요한가요?
기록상 체류기간이 지났다는 사실만으로 근로자를 퇴사 처리하거나 적법 체류 여부를 판단하면 안 됩니다. 담당자가 공식 결과를 확인할 수 있도록 긴급 확인 Case를 만들고, 확인 전에는 고용상태를 그대로 유지해야 합니다.
Depends on fowoco/knowledge#54
Closes #184
무엇이 바뀌나요?
stay_expiry_date < today인ACTIVE·ON_LEAVE근로자를 매일 또는 수동으로 스캔합니다.(company_id, worker_id, source_stay_expiry_date)로 중복 Case를 차단합니다.APPROVED / APPLICATION_PENDING / UNKNOWN / NOT_APPLIED / EMPLOYMENT_ENDED상태와 증빙·재확인일을 별도 저장합니다.WF-CHG-001을 자동 실행하지 않고 후보로만 반환합니다.0.3.1로 맞추고 일반 체류연장과 만료 경과 예외 Workflow의 생성 경계를 분리합니다.API
POST /api/v1/stay-verifications/scanGET /api/v1/stay-verificationsPATCH /api/v1/stay-verifications/{stayVerificationId}안전장치
Worker.work_status변경 금지expected_version동시성 검증Migration
V54__create_stay_verification_case.sqlV55__prepare_expired_stay_scan.sql(PostgreSQL)다음 Server Migration은
V56부터 사용합니다.검증
./gradlew clean test— 658 tests, 성공StayVerificationIntegrationTest— 멱등 스캔·tenant 격리·증빙·승인·고용 종료 분기 성공PostgreSqlMigrationTests성공git diff --check성공후속 연동
WF-STY-EXC-001의 설명·질문 보조만 담당하며 법적 결론과 자동 퇴사 판단을 하지 않습니다.