[KC-108] 분석도엽 추론제외 조건 수정
This commit is contained in:
@@ -209,7 +209,7 @@ public class InferenceResultCoreService {
|
||||
.toList();
|
||||
}
|
||||
|
||||
public List<MapInkxMngDto.Basic> findByMapidList(Search5kReq req) {
|
||||
public List<MapInkxMngDto.MapInkList> findByMapidList(Search5kReq req) {
|
||||
return mapInkx5kRepository.findByMapidList(req);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,4 +91,12 @@ public class ModelMngCoreService {
|
||||
.orElseThrow(() -> new EntityNotFoundException("모델 정보가 없습니다."));
|
||||
return entity.toDto();
|
||||
}
|
||||
|
||||
public ModelMngDto.Basic findByModelUuid(UUID id) {
|
||||
ModelMngEntity entity =
|
||||
modelMngRepository
|
||||
.findByModelId(id)
|
||||
.orElseThrow(() -> new EntityNotFoundException("모델 정보가 없습니다."));
|
||||
return entity.toDto();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,6 @@ public interface ModelMngRepositoryCustom {
|
||||
void insertModelResultMetric(ModelMngDto.ModelMetricAddReq addReq);
|
||||
|
||||
Optional<ModelMngEntity> findByModelId(Long id);
|
||||
|
||||
Optional<ModelMngEntity> findByModelId(UUID id);
|
||||
}
|
||||
|
||||
@@ -237,4 +237,10 @@ public class ModelMngRepositoryImpl extends QuerydslRepositorySupport
|
||||
return Optional.ofNullable(
|
||||
queryFactory.selectFrom(modelMngEntity).where(modelMngEntity.modelUid.eq(id)).fetchOne());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<ModelMngEntity> findByModelId(UUID uuid) {
|
||||
return Optional.ofNullable(
|
||||
queryFactory.selectFrom(modelMngEntity).where(modelMngEntity.uuid.eq(uuid)).fetchOne());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,5 +27,5 @@ public interface MapInkx5kRepositoryCustom {
|
||||
List<MapInkx5kEntity> findByMapSheetNumInAndUseInference(
|
||||
List<String> mapSheetNums, CommonUseStatus use);
|
||||
|
||||
List<MapInkxMngDto.Basic> findByMapidList(Search5kReq search5kReq);
|
||||
List<MapInkxMngDto.MapInkList> findByMapidList(Search5kReq search5kReq);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ public class MapInkx5kRepositoryImpl extends QuerydslRepositorySupport
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MapInkxMngDto.Basic> findByMapidList(Search5kReq search5kReq) {
|
||||
public List<MapInkxMngDto.MapInkList> findByMapidList(Search5kReq search5kReq) {
|
||||
BooleanBuilder builder = new BooleanBuilder();
|
||||
|
||||
if (StringUtils.isNotBlank(search5kReq.getMapidcdNo())) {
|
||||
@@ -162,7 +162,7 @@ public class MapInkx5kRepositoryImpl extends QuerydslRepositorySupport
|
||||
return queryFactory
|
||||
.select(
|
||||
Projections.constructor(
|
||||
MapInkxMngDto.Basic.class,
|
||||
MapInkxMngDto.MapInkList.class,
|
||||
mapInkx5kEntity.fid,
|
||||
mapInkx5kEntity.mapidcdNo,
|
||||
mapInkx5kEntity.mapidNm,
|
||||
|
||||
Reference in New Issue
Block a user