From d5cd65a4890cb95ceb607b461515451fae8d83eb Mon Sep 17 00:00:00 2001 From: hamzaelbakkouri <hamza.elbakkouri@marketingconfort.com> Date: Wed, 9 Apr 2025 14:17:01 +0100 Subject: [PATCH] MS-73/Fix sales seesion stats --- .../mydressin/services/impl/SaleSessionServiceImp.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/marketingconfort/mydressin/services/impl/SaleSessionServiceImp.java b/src/main/java/com/marketingconfort/mydressin/services/impl/SaleSessionServiceImp.java index 367cc1f..c5e5fa6 100644 --- a/src/main/java/com/marketingconfort/mydressin/services/impl/SaleSessionServiceImp.java +++ b/src/main/java/com/marketingconfort/mydressin/services/impl/SaleSessionServiceImp.java @@ -74,9 +74,8 @@ public class SaleSessionServiceImp implements SaleSessionService { public SaleSessionDTO getSaleSessionStatistics(SaleSession saleSession) { SaleSessionDTO saleSessionDTO = saleSessionMapper.toDTO(saleSession); - List<ItemCartStatus> excludedStatuses = Arrays.asList( - ItemCartStatus.DELETED_BO, - ItemCartStatus.DELETED_SITE + List<ItemCartStatus> excludedStatuses = List.of( + ItemCartStatus.DELETED_BO ); Long totalOrderProducts = saleSessionRepository.getTotalOrderProducts(saleSessionDTO.getId()); Integer totalClientsCount = saleSessionRepository.getTotalClientsCount(saleSessionDTO.getId()); -- GitLab