From 7944d0b40795662079c6f558451409dba7282fee Mon Sep 17 00:00:00 2001 From: JSoi Date: Mon, 1 Aug 2022 18:24:26 +0900 Subject: [PATCH] =?UTF-8?q?#18=20[Refactor]=20=EC=A3=BC=EB=B3=80=20?= =?UTF-8?q?=EA=B1=B0=EB=A6=AC=20=EC=A4=84=EC=9D=B4=EA=B8=B0,=20=EB=A6=AC?= =?UTF-8?q?=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mpnp/baechelin/api/controller/PublicApiController.java | 6 +++--- .../java/com/mpnp/baechelin/common/QuerydslLocation.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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);