mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Update Voucher.java
This commit is contained in:
parent
1096ff92a3
commit
d591c3f5f0
@ -38,7 +38,8 @@ public class Voucher {
|
||||
}
|
||||
|
||||
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()) {
|
||||
while (set.next()) {
|
||||
this.history.add(new VoucherHistoryEntry(set));
|
||||
|
Loading…
Reference in New Issue
Block a user