From d4f5947a3809724033444875a38822f309a7b7c2 Mon Sep 17 00:00:00 2001 From: teddy Date: Tue, 23 Dec 2025 14:45:16 +0900 Subject: [PATCH] =?UTF-8?q?spot=20less=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapsheet/MapSheetMngRepositoryImpl.java | 31 +++---------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/mapsheet/MapSheetMngRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/mapsheet/MapSheetMngRepositoryImpl.java index 6c1fbcd2..5ca2c6de 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/mapsheet/MapSheetMngRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/mapsheet/MapSheetMngRepositoryImpl.java @@ -91,26 +91,17 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() - .when( - mapSheetMngHstEntity - .syncState - .eq("NOTPAIR") - ) + .when(mapSheetMngHstEntity.syncState.eq("NOTPAIR")) .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() .when( mapSheetMngHstEntity .syncCheckState .eq("DONE") - .and( - mapSheetMngHstEntity - .syncState - .eq("NOTPAIR"))) + .and(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))) .then(1L) .otherwise(0L) .sum(), @@ -225,43 +216,30 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport .otherwise(0L) .sum() .as("syncStateDoneCnt"), - new CaseBuilder() .when(mapSheetMngHstEntity.syncState.ne("NOTYET")) .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() - .when( - mapSheetMngHstEntity - .syncState - .eq("NOTPAIR") - ) + .when(mapSheetMngHstEntity.syncState.eq("NOTPAIR")) .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() .when( mapSheetMngHstEntity .syncCheckState .eq("DONE") - .and( - mapSheetMngHstEntity - .syncState - .eq("NOTPAIR") - )) + .and(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))) .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() .when(mapSheetMngHstEntity.syncState.eq("DUPLICATE")) .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() .when( mapSheetMngHstEntity @@ -280,7 +258,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport .then(1L) .otherwise(0L) .sum(), - new CaseBuilder() .when( mapSheetMngHstEntity