영상관리 년도 수정

This commit is contained in:
2025-12-22 17:03:45 +09:00
parent f2a0d8fc3c
commit 09ef03ce68

View File

@@ -186,29 +186,33 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
int currentYear = LocalDate.now().getYear();
List<Integer> foundContentCurrent =
queryFactory
.select(mapSheetMngEntity.mngYyyy)
.from(mapSheetMngEntity)
.where(mapSheetMngEntity.mngYyyy.eq(currentYear))
.orderBy(mapSheetMngEntity.mngYyyy.desc())
.fetch();
queryFactory
.select(mapSheetMngEntity.mngYyyy)
.from(mapSheetMngEntity)
.where(mapSheetMngEntity.mngYyyy.eq(currentYear))
.orderBy(mapSheetMngEntity.mngYyyy.desc())
.fetch();
List<Integer> foundContent1 =
queryFactory
.select(mapSheetMngEntity.mngYyyy)
.from(mapSheetMngEntity)
.where(mapSheetMngEntity.mngYyyy.ne(currentYear)
.and(mapSheetMngEntity.mngState.ne("NOTYET")
.or(mapSheetMngEntity.mngState.ne("DELETE"))))
.orderBy(mapSheetMngEntity.mngYyyy.desc())
.fetch();
queryFactory
.select(mapSheetMngEntity.mngYyyy)
.from(mapSheetMngEntity)
.where(
mapSheetMngEntity
.mngYyyy
.ne(currentYear)
.and(
mapSheetMngEntity
.mngState
.ne("NOTYET")
.or(mapSheetMngEntity.mngState.ne("DELETE"))))
.orderBy(mapSheetMngEntity.mngYyyy.desc())
.fetch();
//if( foundContentCurrent == null || foundContentCurrent.size() == 0)
//{
//foundContent.add(currentYear);
//}
// if( foundContentCurrent == null || foundContentCurrent.size() == 0)
// {
// foundContent.add(currentYear);
// }
List<Integer> foundContent = new ArrayList<>();