[BO] 월초이월금은 조회는 이전달 데이터 조건임

This commit is contained in:
김현주
2025-07-18 15:00:27 +09:00
parent 52666df6d6
commit 6ef979cedb
3 changed files with 10 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
select ds.carry_over
from daily_summary ds
where ds.household_seq = #{householdSeq}
and ds.record_month = #{searchMonth}
and ds.record_month = TO_CHAR(TO_DATE(#{searchMonth}, 'YYYYMM') + INTERVAL '-1 MONTH', 'yyyyMM')
order by
ds.id desc
limit 1