spotlessApply 적용
This commit is contained in:
@@ -54,12 +54,13 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
|
|
||||||
NumberExpression<Long> totalCount = mapSheetMngHstEntity.count().as("syncTotCnt");
|
NumberExpression<Long> totalCount = mapSheetMngHstEntity.count().as("syncTotCnt");
|
||||||
|
|
||||||
NumberExpression<Long> doneCount = new CaseBuilder()
|
NumberExpression<Long> doneCount =
|
||||||
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
new CaseBuilder()
|
||||||
.then(1L)
|
.when(mapSheetMngHstEntity.dataState.eq("DONE"))
|
||||||
.otherwise(0L)
|
.then(1L)
|
||||||
.sum()
|
.otherwise(0L)
|
||||||
.as("syncStateDoneCnt");
|
.sum()
|
||||||
|
.as("syncStateDoneCnt");
|
||||||
|
|
||||||
List<MapSheetMngDto.MngDto> foundContent =
|
List<MapSheetMngDto.MngDto> foundContent =
|
||||||
queryFactory
|
queryFactory
|
||||||
@@ -87,46 +88,63 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("NOFILE")
|
.when(
|
||||||
.or( mapSheetMngHstEntity.syncState.eq("NOTPAIR")))
|
mapSheetMngHstEntity
|
||||||
|
.syncState
|
||||||
|
.eq("NOFILE")
|
||||||
|
.or(mapSheetMngHstEntity.syncState.eq("NOTPAIR")))
|
||||||
.then(1L)
|
.then(1L)
|
||||||
.otherwise(0L)
|
.otherwise(0L)
|
||||||
.sum(),
|
.sum(),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncCheckState.eq("DONE")
|
.when(
|
||||||
.and( mapSheetMngHstEntity.syncState.eq("NOFILE")
|
mapSheetMngHstEntity
|
||||||
.or(mapSheetMngHstEntity.syncState.eq("NOTPAIR")) )
|
.syncCheckState
|
||||||
)
|
.eq("DONE")
|
||||||
.then(1L)
|
.and(
|
||||||
.otherwise(0L)
|
mapSheetMngHstEntity
|
||||||
.sum(),
|
.syncState
|
||||||
|
.eq("NOFILE")
|
||||||
|
.or(mapSheetMngHstEntity.syncState.eq("NOTPAIR"))))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.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(mapSheetMngHstEntity.syncCheckState.eq("DONE")
|
.when(
|
||||||
.and(mapSheetMngHstEntity.syncState.eq("DUPLICATE")) )
|
mapSheetMngHstEntity
|
||||||
.then(1L)
|
.syncCheckState
|
||||||
.otherwise(0L)
|
.eq("DONE")
|
||||||
.sum(),
|
.and(mapSheetMngHstEntity.syncState.eq("DUPLICATE")))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncState.eq("TYPEERROR")
|
.when(
|
||||||
.or( mapSheetMngHstEntity.syncState.eq("SIZEERROR")))
|
mapSheetMngHstEntity
|
||||||
.then(1L)
|
.syncState
|
||||||
.otherwise(0L)
|
.eq("TYPEERROR")
|
||||||
.sum(),
|
.or(mapSheetMngHstEntity.syncState.eq("SIZEERROR")))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
new CaseBuilder()
|
new CaseBuilder()
|
||||||
.when(mapSheetMngHstEntity.syncCheckState.eq("DONE")
|
.when(
|
||||||
.and(mapSheetMngHstEntity.syncState.eq("TYPEERROR")
|
mapSheetMngHstEntity
|
||||||
.or( mapSheetMngHstEntity.syncState.eq("SIZEERROR"))) )
|
.syncCheckState
|
||||||
.then(1L)
|
.eq("DONE")
|
||||||
.otherwise(0L)
|
.and(
|
||||||
.sum(),
|
mapSheetMngHstEntity
|
||||||
|
.syncState
|
||||||
|
.eq("TYPEERROR")
|
||||||
|
.or(mapSheetMngHstEntity.syncState.eq("SIZEERROR"))))
|
||||||
|
.then(1L)
|
||||||
|
.otherwise(0L)
|
||||||
|
.sum(),
|
||||||
mapSheetMngEntity.createdDttm,
|
mapSheetMngEntity.createdDttm,
|
||||||
mapSheetMngHstEntity.syncEndDttm.max()))
|
mapSheetMngHstEntity.syncEndDttm.max()))
|
||||||
.from(mapSheetMngEntity)
|
.from(mapSheetMngEntity)
|
||||||
|
|||||||
Reference in New Issue
Block a user