This code retrieves a list of coaches associated with a specific total admin ID, and then filters the list based on a provided coach name. It uses a 'QueryWrapper' to retrieve the admins that match the total admin ID, and then iterates through each admin to retrieve the coaches associated with that admin ID. For each coach, it creates a 'CoachDto' object and sets its properties based on the coach and admin data. Finally, it filters the resulting list of 'CoachDto' objects based on the provided coach name using a simple string comparison 'Contains()' method. The filtered list is returned as the result.

Java Code: Retrieve and Filter Coaches Based on Admin ID and Name