Introduce Python scripts to convert node and node predecessor data from Excel files into SQL INSERT statements. Includes support for ISO code mappings, geo-position parsing, node type determination, and automated chain creation. Also added sample Excel files (`nodes.xlsx`, `pre_nodes.xlsx`) for testing and reference.
Deleted `NodePredecessor` class and legacy query structures. Improved repository queries with grouped logic and added support for optional fields like `is_required`. Updated SQL schema and data to include additional countries (`BQ`, `XK`) and align unique constraints. Introduced `SecurityConfig` for profile-specific security chains.
This commit restructures various calculation services, consolidating and relocating them to improve modularity and clarity. Additionally, it introduces initial SQL insert statements for 'node' entities, laying the groundwork for data mapping and geography-based functionalities.
Replaced `ContainerRateType` with `TransportType` for streamlined rate handling across multiple services. Introduced new `ContainerCalculationResult` logic, integrated weight/volume constraints, and added container type-specific properties. Updated schemas to include geolocation and country ID data for premises and destinations. Improved consistency and correctness in service logic.
Introduce `CalculationExecutionService` and `ContainerCalculationService` for handling premise and container-level calculations, along with a new `ContainerCalculationResult` model. Updated `PackagingDimension` to include a `withTolerance` method for dimension adjustments. Renamed `CalculationController` to `PremiseController` for improved clarity. Enhanced `ExcelReportingService` for accurate header and data mapping during report generation.
Reorganize report-related DTOs, transforming and flattening logic for better modularity and maintainability. Introduce new enums and fields related to transport and route types, ensuring seamless replacement of deprecated ones like `RouteType`. Extend database schema to support new fields, improving flexibility in data handling.
Removed redundant calculation job-related models, simplifying the codebase. Replaced usage of aggregate references with primitive IDs in CalculationJob for better performance. Improved repository methods for efficient node retrieval and updated schema.sql to restructure node references.
Deleted the unused `RoutingService2` class to simplify the codebase. Added the logic for creating and duplicating premises in `PremiseCreationService`, including filtering and handling combinations of material and supplier IDs.
Updated repository classes to replace "node" with "chain" for clarity, aligning with domain terminology. Introduced `RoutingService2` to handle route calculation logic, supporting recursive chain resolution and optimized route determination.
Deleted `DestinationService` and `ValidityPeriodService` as they were obsolete. Refactored several classes, including `PremisesService` and `MatrixRateExcelMapper`, to improve package alignment and streamline dependencies. Enhanced `PremiseRepository` with cleaner query construction, better parameter handling, and support for resolving chains of predecessors in `NodeRepository`.
Deleted unused classes and entities like `AllUpdateDTO`, `MasterDataUpdateDTO`, and `PremissRoute`. Updated `PremisesService` and repository structure for improved functionality and maintainability, including refactoring queries and adding mappers.
Implemented methods to extract and map data from Excel sheets for various entities such as rates, nodes, and packaging. Enhanced header validation and added support for parsing Excel inputs in the `BulkFileProcessingService`.
Consolidated hidden sheet creation logic into a unified structure to improve code maintainability and reduce duplication. Adjusted mappers to ensure bulk file-specific hidden sheets are created, styled, and protected consistently. Added support for a configurable sheet password and introduced a new method in BulkExportService for enhanced period handling.
Replaced `TemplateGenerationService` with `TemplateExportService` and introduced `ExcelMapper` classes for enhanced sheet handling. Updated the database schema to refine node predecessor handling and added new utility methods in repositories. These changes aim to improve bulk operations and data consistency.
Removed CountryMatrixRate and integrated improved validity period management, including new repositories and services. Introduced ValidityPeriodService, updated route mappings in RateController, and replaced PropertySetState with ValidityPeriodState. Adjusted related classes for consistency and clarity.
The commit eliminates packaging-related DTOs, services, and transformers that are no longer in use. It introduces functionality to support user node management, including repository methods, new DTOs, and a GeoApiService placeholder. Adjustments were also made to schema constraints and node transformations.
Eliminates unused controllers, services, DTOs, and models for packaging and property types from the codebase. Streamlines the repository by renaming and refactoring existing classes to improve module organization.
Renamed classes and methods to improve naming consistency and enhance readability. Introduced overloaded `listCountries` methods handling both paginated and full data retrieval. Adjusted query logic and added documentation for improved maintainability.
Added full CRUD functionality for users and groups with JDBC templates, including pagination and group membership management. Refactored service layers to streamline DTO transformations and repository interactions.
This commit deletes unused controllers like PremiseController and repos such as NodeRepository. It also introduces new DTOs, services, and updates existing ones for improved modularity and functionality. These changes streamline the codebase and enhance maintainability.
Updated column names, table names, indexes, and foreign key references to replace "sink" with "destination" for consistency and clarity. Added new cost-related fields to the "premiss_destination" table to better represent associated expenses.
Unused DTOs and transformation services were removed to clean up the codebase and reduce clutter. Added new utility exceptions and DTOs, including `NotFoundException`, `ReferencedException`, and `LocationDTO`, to improve error handling and code organization.
Introduced new DTOs for handling properties at the packaging and country levels, alongside corresponding repositories and property validation. Enhanced CountryService and PackagingService with update and retrieval logic for property values. Updated database schema to support unique constraints and property mapping.
Removed legacy DTOs (`PackagingDTO`, `PackagingListEntry`, etc.) that were no longer in use. Introduced modular, type-specific DTOs (`MaterialGetDTO`, `MaterialPostDTO`, etc.) and improved service layer responsibilities with a new `MaterialTransformerService`. This enhances maintainability and prepares for future feature extensions.
Introduced dedicated classes (`PackagingMaterial`, `MaterialPackaging`, `PackagingSupplier`, `MaterialSupplier`) to better encapsulate packaging and material-related data. Updated repository methods and model references to ensure proper use of the new classes, improving maintainability and reducing ambiguity in the domain model.
Replaced `SearchQueryResult` utility class with a more robust `SearchQueryResult` under a new pagination package. Introduced `PackagingRepository` and `PackagingController` to manage packaging entities. Enhanced data models with new entities (`NodeType`, `PackagingDimension`), and updated existing ones (`Packaging`, `PackagingListEntry`) to improve modularity and support handling units.
Updated all CREATE TABLE statements to include the "IF NOT EXISTS" clause, ensuring schema initialization does not fail if tables already exist. Additionally, reorganized and split some table definitions for better modularity and maintainability.
Replaced direct MaterialRepository usage in MaterialController with MaterialService to encapsulate business logic. Introduced MaterialService, centralizing operations like create, update, and delete while adding normalization for part numbers. Updated MaterialRepository with a new `create` method and adjusted `getById` for clarity.
Integrated Material domain entities with DTOs, repository, and controller, enabling CRUD functionality, pagination, and validation. Added utility classes like `UnitConverter`, and exception handling via global handlers. New classes include models for packaging, countries, and error handling structures.