rectify query for cashier-teller transactions

This commit is contained in:
Wilfred Kigenyi
2024-10-31 08:59:22 +01:00
committed by Arnold Gálovics
parent 542cad793d
commit d202145a88
7 changed files with 259 additions and 84 deletions
@@ -289,4 +289,13 @@ public class DatabaseSpecificSQLGenerator {
}
};
}
public String incrementDateByOneDay(String dateColumn) {
return switch (getDialect()) {
case POSTGRESQL -> " " + dateColumn + "+1";
case MYSQL -> " DATE_ADD(" + dateColumn + ", INTERVAL 1 DAY) ";
};
}
}