inverted appointment order, implemented loading by date range
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -168,7 +168,7 @@ public class MariaDB implements Database {
|
|||||||
.leftJoin(AID, "appointment_tags", AID)
|
.leftJoin(AID, "appointment_tags", AID)
|
||||||
.leftJoin("tid", "tags", "tid")
|
.leftJoin("tid", "tags", "tid")
|
||||||
.groupBy(AID)
|
.groupBy(AID)
|
||||||
.sort("start DESC");
|
.sort("start ASC");
|
||||||
if (from != null) query.where(START, moreThan(Timestamp.valueOf(from)));
|
if (from != null) query.where(START, moreThan(Timestamp.valueOf(from)));
|
||||||
if (till != null) query.where(END, lessThan(Timestamp.valueOf(till)));
|
if (till != null) query.where(END, lessThan(Timestamp.valueOf(till)));
|
||||||
if (count != null) query.limit(count);
|
if (count != null) query.limit(count);
|
||||||
|
|||||||
Reference in New Issue
Block a user