VSN-1550/Refactor Contract CRUD methods, toggle active/status, export services, mappers, DTOs, and enhance client data retrieval
This MR includes several important refactorings and improvements to both the vsn-admin-service and client-related services:
- Contract CRUD Refactor: The contract CRUD operations have been refactored to improve efficiency, readability, and maintainability.
- Toggle Active/Status: Updated logic for toggling the active status of contracts and clients.
- Export Services Refactor: Export services have been updated to properly integrate with the newly added client data retrieval methods.
- Mapper and DTO Refactor: Mappers and DTOs have been adjusted for better consistency in handling client data.
- Client Data Retrieval Enhancement: Added new methods to improve the retrieval of client data:
- getAllClientDropdownDTOByIds(List ids): Fetches a list of client dropdown items by the provided client IDs.
- getClientDropdownDTOItemById(Long id): Fetches a specific client dropdown item by its unique ID.
- getClientDepartmentIdByClientId(Long clientId): Retrieves the department ID for a given client.
These changes provide more efficient data retrieval, better service interactions, and enhanced maintainability for the client-related services.