[BO] 월초이월금은 조회는 이전달 데이터 조건임
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user