| Limit (cost=118.93..119.03 rows=40 width=151) |
| -> Sort (cost=118.93..120.00 rows=430 width=151) |
| Sort Key: l.settle_at DESC |
| -> HashAggregate (cost=101.04..105.34 rows=430 width=151) |
| Group Key: l.id |
| -> Hash Right Join (cost=74.12..99.96 rows=430 width=151) |
| Hash Cond: (eh.erp_bank_amount_change_log_id = l.id) |
| -> Seq Scan on tbl_erp_bank_amount_change_log_handlers eh (cost=0.00..22.12 rows=1412 width=8) |
| -> Hash (cost=68.75..68.75 rows=430 width=151) |
| -> Seq Scan on tbl_erp_bank_amount_change_logs l (cost=0.00..68.75 rows=430 width=151) |
| Filter: ((settle_at >= '2026-01-01 00:00:00+08'::timestamp with time zone) AND (settle_at <= '2026-12-31 23:59:59+08'::timestamp with time zone) AND (erp_bank_id = 1)) |