test(point): 개근 보너스 전월 제한 임시 해제 — 6월 데이터 검증용
Deploy / deploy (push) Failing after 15m31s

테스트 후 되돌릴 예정(현재 월만 인정으로 복구).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-05 17:01:00 +09:00
parent 45bb025247
commit 56197c2689
@@ -267,8 +267,10 @@ public class AccountService {
private void awardIfMonthComplete(java.time.LocalDate entryDate, Long memberId) {
if (entryDate == null) return;
try {
java.time.LocalDate today = java.time.LocalDate.now();
if (entryDate.getYear() != today.getYear() || entryDate.getMonthValue() != today.getMonthValue()) return;
// [임시 테스트] 전월(예: 6월) 완성으로도 검증하려고 '현재 월만' 제한을 잠시 해제.
// 테스트 후 아래 주석 해제해 '전 월 제외'로 복구할 것.
// java.time.LocalDate today = java.time.LocalDate.now();
// if (entryDate.getYear() != today.getYear() || entryDate.getMonthValue() != today.getMonthValue()) return;
int recorded = mapper.countDistinctEntryDays(memberId, entryDate.getYear(), entryDate.getMonthValue());
if (recorded >= entryDate.lengthOfMonth()) {
pointService.awardMonthComplete(memberId, entryDate.getYear(), entryDate.getMonthValue());