Skip to content

VSN-1550/Refactor Contract CRUD methods, toggle active/status, export services, mappers, DTOs, and enhance client data retrieval

salaheddine zidani a demandé de fusionner refactor/VSN-1550 vers develop

This MR includes several important refactorings and improvements to both the vsn-admin-service and client-related services:

  1. Contract CRUD Refactor: The contract CRUD operations have been refactored to improve efficiency, readability, and maintainability.
  2. Toggle Active/Status: Updated logic for toggling the active status of contracts and clients.
  3. Export Services Refactor: Export services have been updated to properly integrate with the newly added client data retrieval methods.
  4. Mapper and DTO Refactor: Mappers and DTOs have been adjusted for better consistency in handling client data.
  5. 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.

Rapports de requête de fusion