Skip to content

Commit

Permalink
#18 [Refactor] 주변 거리 줄이기, 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Aug 1, 2022
1 parent 6cbb970 commit 7944d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ 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 적용 완료");
}

@ApiOperation(value="공공 API V2을 통해 DB에 정보를 저장/업데이트하는 함수")
@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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static BooleanBuilder locAndConditions(BigDecimal latStart, BigDecimal la
public static BooleanBuilder locTwoPointAndConditions(BigDecimal latitude, BigDecimal longitude, String category, List<String> 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);
Expand Down

0 comments on commit 7944d0b

Please sign in to comment.