추론 주석 추가

This commit is contained in:
2026-02-27 14:01:14 +09:00
parent dc42baf91a
commit b7470d11d4
3 changed files with 14 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ public class SecurityConfig {
.requestMatchers(
"/api/user/**",
"/api/my/menus",
"/api/members/*/password",
"/api/training-data/label/**",
"/api/training-data/review/**")
.authenticated()

View File

@@ -283,7 +283,7 @@ public class InferenceResultCoreService {
.distinct() // 중복 방지 (선택)
.toList();
// testing 추론결과 테이블 조회하여 탐지 개수 업데이트
// testing 테이블 추론결과 테이블 조회하여 탐지 개수 업데이트
Long testing = getInferenceResultCnt(batchIds);
// 공통 영역 업데이트
@@ -535,6 +535,12 @@ public class InferenceResultCoreService {
return list.stream().map(InferenceResultsTestingEntity::toDto).toList();
}
/**
* 테스팅 테이블 조회하여 탐지건수 조회
*
* @param batchIds batchIds
* @return batchIds 조회 count 수
*/
public Long getInferenceResultCnt(List<Long> batchIds) {
return inferenceResultsTestingRepository.getInferenceResultCnt(batchIds);
}

View File

@@ -7,5 +7,11 @@ public interface InferenceResultsTestingRepositoryCustom {
List<InferenceResultsTestingEntity> getInferenceResultList(List<Long> batchIds);
/**
* 테스팅 테이블 조회하여 탐지건수 조회
*
* @param batchIds batchIds
* @return batchIds 조회 count 수
*/
Long getInferenceResultCnt(List<Long> batchIds);
}