[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

@@ -236,7 +236,7 @@
ds.carry_over
from daily_summary ds
JOIN household h on ds.household_seq = h.seq and h.is_deleted = false
where ds.record_month = #{recordMonth}
where ds.record_month = TO_CHAR(TO_DATE(#{recordMonth}, 'YYYYMM') + INTERVAL '-1 MONTH', 'yyyyMM')
AND ds.household_seq IN
<foreach collection="householdSeqs" item="seq" open="(" separator="," close=")">
#{seq}