Workokrders updates as they cycle

This commit is contained in:
MagicBot committed 2024-04-22 15:09:43 -04:00
1 parent 684a5459b3
commit 7b7492b5cc
2 files changed
+21

No files matched your search

@@ -171,4 +171,16 @@ public class dbWarehouseHandler extends dbHandlerBase {
}
return false;
}
public void DELETE_WORKORDER(WorkOrder workOrder) {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM `dyn_workorders` WHERE `workorderID` = ?;")) {
preparedStatement.setInt(1, workOrder.workOrderID);
preparedStatement.executeUpdate();
} catch (SQLException e) {
Logger.error(e);
}
}
}