Logik des AllTreatmentController angepasst
All checks were successful
Quality Check / Linting Check (push) Successful in 12s
Quality Check / Javadoc Check (push) Successful in 21s
Quality Check / Linting Check (pull_request) Successful in 12s
Quality Check / Javadoc Check (pull_request) Successful in 20s

This commit is contained in:
arminribic 2024-05-21 13:56:22 +02:00
parent 0ac8f3eb1b
commit bf86f9fc84

View file

@ -322,6 +322,13 @@ public class AllTreatmentController {
}catch (SQLException exception){
exception.printStackTrace();
}
if (selectedItem.calculateDeleteDate().isBefore(LocalDate.now())){
try {
dao.delete(selectedItem.getId());
} catch (SQLException e) {
throw new RuntimeException(e);
}
}
readAllAndShowInTableView();
}