Workokrders updates as they cycle
This commit is contained in:
@@ -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