추론 삭제여부 로직 추가

This commit is contained in:
2026-05-15 09:55:31 +09:00
parent 9116bf7b89
commit cfd5963a15
2 changed files with 3 additions and 2 deletions

View File

@@ -211,7 +211,8 @@ public class ChangeDetectionRepositoryImpl extends QuerydslRepositorySupport
.where(
l.status
.eq(Status.END.getId())
.and(JPAExpressions.selectOne().from(d).where(d.analUid.eq(a.id)).exists()))
.and(JPAExpressions.selectOne().from(d).where(d.analUid.eq(a.id)).exists()),
l.isDeleted.eq(false).or(l.isDeleted.isNull()))
.orderBy(l.id.asc())
.fetch();
}

View File

@@ -160,7 +160,7 @@ public class LabelWorkRepositoryImpl implements LabelWorkRepositoryCustom {
"substring({0} from 1 for 8)", mapSheetLearnEntity.uid),
mapSheetLearnEntity.uuid))
.from(mapSheetAnalInferenceEntity)
.leftJoin(mapSheetLearnEntity)
.innerJoin(mapSheetLearnEntity)
.on(
mapSheetAnalInferenceEntity.learnId.eq(mapSheetLearnEntity.id),
mapSheetLearnEntity.isDeleted.eq(false).or(mapSheetLearnEntity.isDeleted.isNull()))