모담테크
admin

기록 정렬 임시 문서

admin 2026-10-02 02:00 조회 4 좋아요 0
수정
목록

orderBy:
"(event_time IS NULL OR event_time = '') ASC, event_time ASC, id ASC"
으로 변경. 시간이 있는 기록은 'HH:mm' 오름차순으로, 시간이 없는 기록(종일/미지정)은 맨 뒤로, 같은 시각이면 기존처럼 입력 순서(id) 유지합니다.
이대로 수정해도 될까요?
✻ Churned for 1m 51s · done 1:43 AM
❯ 응 그렇게 수정해줘
⏺ Update(lib/db/app_db.dart)
──────────────────────────────────────────────────────── 1 new message ─────────────────────────────────────────────────────────
Added 2 lines, removed 1 line
where:
"user_id = ? AND is_record = 1 AND (repeat_unit IS NULL OR repeat_unit = '') AND due_date = ? AND
is_deleted = 0",
whereArgs: [u, iso],
orderBy: 'id');
orderBy:
"(event_time IS NULL OR event_time = '') ASC, event_time ASC, id ASC");
return r.map(Todo.fromMap).toList();
}
Ran 1 shell command
recordsOnDate()를 시분 오름차순(시간 없는 기록은 뒤로, 동일 시각은 입력 순서 유지)으로 정렬하도록 수정했고, flutter analyze 통과했습니다. 시뮬레이터 확인은 직접 부탁드립니다.
✻ Worked for 25s · done 1:59 AM

수정
목록