Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ public static class LocationBasedListResponseDto {
private String cat2;
private String firstimage;
private String dist;
private String areacode;
private String sigungucode;
@JacksonXmlProperty(localName = "areacode")
private String areaCode;
@JacksonXmlProperty(localName = "sigungucode")
private String sigunguCode;
private Integer pageNo;
private Integer numOfRows;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ public class TatsCnctrService {

@Cacheable(
cacheNames = "tatsCnctr",
key = "T(java.util.Objects).hash(#req.getAreacode(), #req.getSigungucode(), #req.getTitle(), #req.getPageNo(), #req.getNumOfRows())"
key = "T(java.util.Objects).hash(#req.getAreaCode(), #req.getSigunguCode(), #req.getTitle(), #req.getPageNo(), #req.getNumOfRows())"
)
public Mono<TatsCnctrResponse.TatsCnctrResponseDto> getCnctrRate(
KorService2Response.LocationBasedListResponseDto req) {

return Mono.defer(() -> {
log.info("[TatsCnctr] 혼잡도 조회 시작: title='{}', area={}, sigungu={}",
req.getTitle(), req.getAreacode(), req.getSigungucode());
req.getTitle(), req.getAreaCode(), req.getSigunguCode());

return Mono.fromCallable(() -> {
String areaCode = req.getAreacode();
String sigunguCode = req.getSigungucode();
String areaCode = req.getAreaCode();
String sigunguCode = req.getSigunguCode();

log.debug("[TatsCnctr] 입력 코드: areacode='{}', sigungucode='{}'", areaCode, sigunguCode);

Expand Down