Workokrders updates as they cycle
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user