spot less 적용
This commit is contained in:
@@ -91,26 +91,17 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
||||||
mapSheetMngHstEntity
|
|
||||||
.syncState
|
|
||||||
.eq("NOTPAIR")
|
|
||||||
)
|
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
.syncCheckState
|
.syncCheckState
|
||||||
.eq("DONE")
|
.eq("DONE")
|
||||||
.and(
|
.and(mapSheetMngHstEntity.syncState.eq("NOTPAIR")))
|
||||||
mapSheetMngHstEntity
|
|
||||||
.syncState
|
|
||||||
.eq("NOTPAIR")))
|
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
@@ -225,43 +216,30 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum()
|
.sum()
|
||||||
.as("syncStateDoneCnt"),
|
.as("syncStateDoneCnt"),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
.when(mapSheetMngHstEntity.syncState.ne("NOTYET"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))
|
||||||
mapSheetMngHstEntity
|
|
||||||
.syncState
|
|
||||||
.eq("NOTPAIR")
|
|
||||||
)
|
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
.syncCheckState
|
.syncCheckState
|
||||||
.eq("DONE")
|
.eq("DONE")
|
||||||
.and(
|
.and(mapSheetMngHstEntity.syncState.eq("NOTPAIR")))
|
||||||
mapSheetMngHstEntity
|
|
||||||
.syncState
|
|
||||||
.eq("NOTPAIR")
|
|
||||||
))
|
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
.when(mapSheetMngHstEntity.syncState.eq("DUPLICATE"))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
@@ -280,7 +258,6 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
|
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(
|
.when(
|
||||||
mapSheetMngHstEntity
|
mapSheetMngHstEntity
|
||||||
|
|||||||
Reference in New Issue
Block a user