From 64f130733f34a2a4dfeeb51d682ec121d52b7856 Mon Sep 17 00:00:00 2001 From: Jottyfan Date: Tue, 6 Dec 2022 22:07:35 +0100 Subject: [PATCH] finetuning on overview --- .../de/jottyfan/camporganizer/module/common/IndexGateway.java | 4 +++- src/main/resources/templates/index.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java b/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java index 635d422..39feb4d 100644 --- a/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java +++ b/src/main/java/de/jottyfan/camporganizer/module/common/IndexGateway.java @@ -4,6 +4,7 @@ import static de.jottyfan.camporganizer.db.jooq.Tables.T_PERSON; import static de.jottyfan.camporganizer.db.jooq.Tables.T_PROFILE; import static de.jottyfan.camporganizer.db.jooq.Tables.V_CAMP; +import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.stream.Stream; @@ -14,6 +15,7 @@ import org.jooq.Condition; import org.jooq.DSLContext; import org.jooq.Record; import org.jooq.SelectConditionStep; +import org.jooq.SelectSeekStep1; import org.jooq.UpdateConditionStep; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; @@ -37,7 +39,7 @@ public class IndexGateway { private DSLContext jooq; public Stream getAllCamps(Condition condition) { - SelectConditionStep sql = jooq.selectFrom(V_CAMP).where(condition); + SelectSeekStep1 sql = jooq.selectFrom(V_CAMP).where(condition).orderBy(V_CAMP.ARRIVE); LOGGER.debug(sql.toString()); return sql.fetchStream(); } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index fa2c081..278fcd8 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -47,7 +47,7 @@
Preis
-
+
Ferien