From b0d1f9afc68d37b345e516f95f33688585ed1f9f Mon Sep 17 00:00:00 2001 From: gkfktkrh153 Date: Wed, 14 Aug 2024 11:20:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=84=EA=B8=B0=20=EB=B3=84=20=EC=88=9C?= =?UTF-8?q?=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/population/repository/PopulationRepositoryImpl.java | 2 +- .../domain/data/sales/repository/SalesRepositoryImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java b/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java index 2a2545a..f3c252f 100644 --- a/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java +++ b/src/main/java/com/dduckddak/domain/data/population/repository/PopulationRepositoryImpl.java @@ -127,7 +127,7 @@ public List findFloatingPopulationTransition(String code) { .innerJoin(population.town, town).fetchJoin() .where(population.populationType.eq(PopulationType.FloatingPopulation) .and(town.quarter.in(20241, 20234, 20233, 20232, 20231))) - .orderBy(population.town.quarter.desc(), population.totalPopulation.desc()) + .orderBy(population.town.quarter.asc(), population.totalPopulation.desc()) .fetch(); } diff --git a/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java b/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java index 15ec0e7..541bf3a 100644 --- a/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java +++ b/src/main/java/com/dduckddak/domain/data/sales/repository/SalesRepositoryImpl.java @@ -101,7 +101,7 @@ public List findSalesForTransitionData() { town.quarter.in(20241L, 20234L, 20233L, 20232L, 20231L) ) .groupBy(town.name, town.quarter, town.code) - .orderBy(town.quarter.desc(), sales.currentMonthlySales.sum().desc()) + .orderBy(town.quarter.asc(), sales.currentMonthlySales.sum().desc()) .fetch(); } @@ -293,7 +293,7 @@ public List findSalesByIndustryForTransitionData(String industry.name.eq(industryName), town.quarter.in(20241L, 20234L, 20233L, 20232L, 20231L) ) - .orderBy(town.quarter.desc(), sales.currentMonthlySales.desc()) + .orderBy(town.quarter.asc(), sales.currentMonthlySales.desc()) .fetch();