변화지도 uuid 조회 기능 추가

This commit is contained in:
2026-02-23 19:59:15 +09:00
parent 3683c193d4
commit 70e01a2044
6 changed files with 85 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package com.kamco.cd.kamcoback.changedetection;
import com.fasterxml.jackson.databind.JsonNode;
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto;
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto.ChangeDetectionMapDto;
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto.DetectSearchType;
import com.kamco.cd.kamcoback.changedetection.dto.ChangeDetectionDto.MapScaleType;
import com.kamco.cd.kamcoback.changedetection.service.ChangeDetectionService;
@@ -146,4 +147,31 @@ public class ChangeDetectionApiController {
return ApiResponseDto.ok(
changeDetectionService.getChangeDetectionPointList(type, scale, uuid, mapSheetNum));
}
@Operation(summary = "변화지도 uuid 조회", description = "변화지도 uuid 조회 API")
@GetMapping("/map")
public ApiResponseDto<UUID> getChangeDetection(
@Parameter(description = "기준년도", required = true) @RequestParam(defaultValue = "2022")
Integer stddYear,
@Parameter(description = "비교년도", required = true) @RequestParam(defaultValue = "2023")
Integer cprsnYear,
@Parameter(description = "변화탐지 객체 id 32자리") @RequestParam(defaultValue = "", required = false)
String cdObjectId,
@Parameter(description = "변화탐지 객체 ids 32자리")
@RequestParam(defaultValue = "", required = false)
List<String> cdObjectIds,
@Parameter(description = "변화탐지 회차별 id 32자리")
@RequestParam(defaultValue = "", required = false)
String chnDtctId,
@Parameter(description = "pnu") @RequestParam(defaultValue = "", required = false)
String pnu) {
ChangeDetectionMapDto req = new ChangeDetectionMapDto();
req.setCompareYyyy(stddYear);
req.setTargetYyyy(cprsnYear);
req.setCdObjectId(cdObjectId);
req.setCdObjectIds(cdObjectIds);
req.setChnDtctId(chnDtctId);
req.setPnu(pnu);
return ApiResponseDto.ok(changeDetectionService.getChangeDetectionUuid(req));
}
}