[KC-108] 분석도엽 추론제외 조건 수정
This commit is contained in:
@@ -74,19 +74,18 @@ public class InferenceResultService {
|
||||
mapSheetIds.add(mapInkx5kEntity.getMapidcdNo());
|
||||
});
|
||||
req.setMapSheetNum(mapSheetIds);
|
||||
System.out.println(mapSheetIds);
|
||||
}
|
||||
|
||||
// UUID uuid = inferenceResultCoreService.saveInferenceInfo(req);
|
||||
UUID uuid = inferenceResultCoreService.saveInferenceInfo(req);
|
||||
|
||||
// TODO tif 없으면 전년도 파일 조회 쿼리 추가해야함
|
||||
// TODO 도엽 개수를 target 기준으로 맞춰야함
|
||||
// this.getSceneInference(String.valueOf(req.getCompareYyyy()), req.getMapSheetNum());
|
||||
// this.getSceneInference(String.valueOf(req.getTargetYyyy()), req.getMapSheetNum());
|
||||
//
|
||||
// InferenceSendDto m1 = this.getModelInfo(req.getModel1Uuid());
|
||||
// InferenceSendDto m2 = this.getModelInfo(req.getModel2Uuid());
|
||||
// InferenceSendDto m3 = this.getModelInfo(req.getModel3Uuid());
|
||||
this.getSceneInference(String.valueOf(req.getCompareYyyy()), req.getMapSheetNum());
|
||||
this.getSceneInference(String.valueOf(req.getTargetYyyy()), req.getMapSheetNum());
|
||||
|
||||
InferenceSendDto m1 = this.getModelInfo(req.getModel1Uuid());
|
||||
InferenceSendDto m2 = this.getModelInfo(req.getModel2Uuid());
|
||||
InferenceSendDto m3 = this.getModelInfo(req.getModel3Uuid());
|
||||
//
|
||||
// ensureAccepted(m1);
|
||||
// ensureAccepted(m2);
|
||||
@@ -134,12 +133,12 @@ public class InferenceResultService {
|
||||
/**
|
||||
* 모델정보 조회 dto 생성 후 반환
|
||||
*
|
||||
* @param id
|
||||
* @param uuid
|
||||
* @return
|
||||
*/
|
||||
private InferenceSendDto getModelInfo(Long id) {
|
||||
private InferenceSendDto getModelInfo(UUID uuid) {
|
||||
|
||||
Basic modelInfo = modelMngCoreService.findByModelUuid(id);
|
||||
Basic modelInfo = modelMngCoreService.findByModelUuid(uuid);
|
||||
|
||||
InferenceSendDto sendDto = new InferenceSendDto();
|
||||
sendDto.setModel_version(modelInfo.getModelVer());
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.kamco.cd.kamcoback.common.utils.enums.CodeExpose;
|
||||
import com.kamco.cd.kamcoback.common.utils.enums.EnumType;
|
||||
import com.kamco.cd.kamcoback.common.utils.interfaces.JsonFormatDttm;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.util.UUID;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -70,7 +70,7 @@ public class MapInkxMngDto {
|
||||
private String mapidcdNo;
|
||||
private String mapidNm;
|
||||
private Geometry geom;
|
||||
private String useInference;
|
||||
private CommonUseStatus useInference;
|
||||
}
|
||||
|
||||
@Getter
|
||||
|
||||
Reference in New Issue
Block a user