[FO] 일계부 최근등록일 일괄 수정

This commit is contained in:
김현주
2025-06-23 15:53:35 +09:00
parent 510ea5ec65
commit e3a5f73d77
14 changed files with 106 additions and 42 deletions

View File

@@ -26,18 +26,11 @@
h.is_panel,
h.memo,
h.drop_reason,
dr.start_date as latest_register_start_date,
dr.end_date as latest_register_end_date,
h.created_at,
h.created_by,
h.updated_at,
h.updated_by
FROM household h
LEFT JOIN (
SELECT start_date , end_date ,household_seq
FROM daily_record dr
ORDER BY start_date desc
LIMIT 1 ) dr ON dr.household_seq = h.seq
WHERE h.household_num = #{householdNum}
AND h.is_deleted = false
</select>