변화탐지 selected polygon, point 조건 수정
This commit is contained in:
@@ -401,15 +401,15 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
|
||||
// pnu가 들어온 경우
|
||||
boolean hasPnu = pnu != null && !pnu.isBlank();
|
||||
|
||||
// pnu 가 없을 때
|
||||
if (!hasPnu) {
|
||||
builder.and(
|
||||
mapSheetAnalDataInferenceGeomEntity
|
||||
.resultUid
|
||||
.eq(chnDtctId)
|
||||
.eq(cdObjectId)
|
||||
.or(mapSheetAnalDataInferenceGeomEntity.resultUid.in(cdObjectIds)));
|
||||
}
|
||||
|
||||
// List<ChangeDetectionDto.PolygonQueryData> list =
|
||||
JPAQuery<PolygonQueryData> query =
|
||||
queryFactory
|
||||
.select(
|
||||
@@ -436,11 +436,8 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
|
||||
.on(mapSheetAnalInferenceEntity.id.eq(mapSheetAnalDataInferenceEntity.analUid))
|
||||
.innerJoin(mapSheetLearnEntity)
|
||||
.on(mapSheetLearnEntity.id.eq(mapSheetAnalInferenceEntity.learnId));
|
||||
// .where(builder)
|
||||
// .orderBy(mapSheetAnalDataInferenceGeomEntity.mapSheetNum.asc());
|
||||
// .fetch();
|
||||
|
||||
// 🔥 pnu 조건이면 tb_pnu join 추가
|
||||
// pnu 조건이면 tb_pnu join 추가
|
||||
if (hasPnu) {
|
||||
query
|
||||
.innerJoin(pnuEntity)
|
||||
@@ -499,15 +496,15 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
|
||||
// pnu가 들어온 경우
|
||||
boolean hasPnu = pnu != null && !pnu.isBlank();
|
||||
|
||||
// pnu 가 없을 때
|
||||
if (!hasPnu) {
|
||||
builder.and(
|
||||
mapSheetAnalDataInferenceGeomEntity
|
||||
.resultUid
|
||||
.eq(chnDtctId)
|
||||
.eq(cdObjectId)
|
||||
.or(mapSheetAnalDataInferenceGeomEntity.resultUid.in(cdObjectIds)));
|
||||
}
|
||||
|
||||
// List<ChangeDetectionDto.PointQueryData> list =
|
||||
JPAQuery<PointQueryData> query =
|
||||
queryFactory
|
||||
.select(
|
||||
@@ -528,10 +525,8 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
|
||||
.on(mapSheetAnalInferenceEntity.id.eq(mapSheetAnalDataInferenceEntity.analUid))
|
||||
.innerJoin(mapSheetLearnEntity)
|
||||
.on(mapSheetLearnEntity.id.eq(mapSheetAnalInferenceEntity.learnId));
|
||||
// .where(builder)
|
||||
// .fetch();
|
||||
|
||||
// 🔥 pnu 조건이면 tb_pnu join 추가
|
||||
// pnu 조건이면 tb_pnu join 추가
|
||||
if (hasPnu) {
|
||||
query
|
||||
.innerJoin(pnuEntity)
|
||||
|
||||
Reference in New Issue
Block a user