diff --git a/src/main/java/com/mpnp/baechelin/api/controller/PublicApiController.java b/src/main/java/com/mpnp/baechelin/api/controller/PublicApiController.java index 6291d0f..b403673 100644 --- a/src/main/java/com/mpnp/baechelin/api/controller/PublicApiController.java +++ b/src/main/java/com/mpnp/baechelin/api/controller/PublicApiController.java @@ -25,7 +25,7 @@ public class PublicApiController { @ApiOperation(value="공공 API V1을 통해 DB에 정보를 저장/업데이트하는 함수") @PostMapping("/api") public SuccessResponse getPublicApi(@Valid @RequestBody PublicApiRequestDto publicApiRequestDto) { - publicApiService.processApiV1(publicApiRequestDto); +// publicApiService.processApiV1(publicApiRequestDto); return new SuccessResponse("공공 API V1 적용 완료"); } @@ -33,12 +33,12 @@ public SuccessResponse getPublicApi(@Valid @RequestBody PublicApiRequestDto publ @GetMapping("/new-api") public SuccessResponse getPublicApiV2(@RequestParam String siDoNm, @RequestParam String cggNm){ - publicApiServiceV2.processApi(siDoNm, cggNm, 1); +// publicApiServiceV2.processApi(siDoNm, cggNm, 1); return new SuccessResponse("공공 API V2 적용 완료"); } @GetMapping("/api-read") public void go(@RequestParam String serviceKey){ - publicApiServiceV2.start(); +// publicApiServiceV2.start(); } } diff --git a/src/main/java/com/mpnp/baechelin/common/QuerydslLocation.java b/src/main/java/com/mpnp/baechelin/common/QuerydslLocation.java index b18d619..516bf83 100644 --- a/src/main/java/com/mpnp/baechelin/common/QuerydslLocation.java +++ b/src/main/java/com/mpnp/baechelin/common/QuerydslLocation.java @@ -52,7 +52,7 @@ public static BooleanBuilder locAndConditions(BigDecimal latStart, BigDecimal la public static BooleanBuilder locTwoPointAndConditions(BigDecimal latitude, BigDecimal longitude, String category, List facility) { BooleanBuilder builder = new BooleanBuilder(); if (latitude != null && longitude != null) { - BigDecimal[] location = getRange(latitude, longitude, 10); + BigDecimal[] location = getRange(latitude, longitude, 3); builder = locationBuilder(location[0], location[1], location[2], location[3]); } return getBooleanBuilder(category, facility, builder);