mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-12-03 11:16:26 +01:00
Merge branch 'vouchers-fix' into 'dev'
Update Voucher.java See merge request morningstar/Arcturus-Community!473
This commit is contained in:
commit
dc73b8529b
@ -38,7 +38,8 @@ public class Voucher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void loadHistory() {
|
private void loadHistory() {
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("SELECT * FROM voucher_history")) {
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("SELECT * FROM voucher_history WHERE voucher_id = ?")) {
|
||||||
|
statement.setInt(1, this.id);
|
||||||
try (ResultSet set = statement.executeQuery()) {
|
try (ResultSet set = statement.executeQuery()) {
|
||||||
while (set.next()) {
|
while (set.next()) {
|
||||||
this.history.add(new VoucherHistoryEntry(set));
|
this.history.add(new VoucherHistoryEntry(set));
|
||||||
|
Loading…
Reference in New Issue
Block a user