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 367cc1f7af889f9c27e380d82b7c111a92593260..c5e5fa66564ed586cfc52bbd21023af1c614ffe4 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());