영상관리 자동추론제외 로직 수정
This commit is contained in:
@@ -85,4 +85,12 @@ public class MapSheetMngFileJobCoreService {
|
||||
public YearMinMax findYearMinMaxInfo() {
|
||||
return mapSheetMngYearRepository.findYearMinMaxInfo();
|
||||
}
|
||||
|
||||
public Long findMngYyyyCnt(Integer mngYyyy) {
|
||||
return mapSheetMngFileJobRepository.findMngYyyyCnt(mngYyyy);
|
||||
}
|
||||
|
||||
public Long findMapSheetUseExceptCnt(String mapSheetNum) {
|
||||
return mapSheetMngFileJobRepository.findMapSheetUseExceptCnt(mapSheetNum);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,8 @@ public interface MapSheetMngFileJobRepositoryCustom {
|
||||
int mngYyyy, int strtYyyy, int endYyyy, String mapSheetNum);
|
||||
|
||||
public void updateException5kMapSheet(String mapSheetNum, CommonUseStatus commonUseStatus);
|
||||
|
||||
Long findMngYyyyCnt(Integer mngYyyy);
|
||||
|
||||
Long findMapSheetUseExceptCnt(String mapSheetNum);
|
||||
}
|
||||
|
||||
@@ -267,4 +267,26 @@ public class MapSheetMngFileJobRepositoryImpl extends QuerydslRepositorySupport
|
||||
.where(mapInkx5kEntity.mapidcdNo.eq(mapSheetNum))
|
||||
.execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long findMngYyyyCnt(Integer mngYyyy) {
|
||||
return queryFactory
|
||||
.select(mapSheetMngEntity.mngYyyy.count())
|
||||
.from(mapSheetMngEntity)
|
||||
.where(mapSheetMngEntity.mngYyyy.ne(mngYyyy))
|
||||
.fetchOne();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long findMapSheetUseExceptCnt(String mapSheetNum) {
|
||||
return queryFactory
|
||||
.select(
|
||||
new CaseBuilder()
|
||||
.when(mapInkx5kEntity.useInference.eq(CommonUseStatus.USE))
|
||||
.then(1L)
|
||||
.otherwise(0L))
|
||||
.from(mapInkx5kEntity)
|
||||
.where(mapInkx5kEntity.mapidcdNo.eq(mapSheetNum))
|
||||
.fetchOne();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user