diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java index 923c9fe3b..671950890 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java @@ -128,6 +128,8 @@ public class AMapServiceImpl implements AMapService { @Override public List getStationInfosV2(GetStationInfoDTO dto) { + StopWatch sw = new StopWatch(); + sw.start("查询站点信息"); List resultList = Lists.newArrayList(); // 设置分页参数 int pageNo = dto.getCurrentPage() == null ? 1 : dto.getCurrentPage(); @@ -187,6 +189,8 @@ public class AMapServiceImpl implements AMapService { resultList.add(aMapInfo); } + sw.stop(); + log.info("接口耗时:{}, 详情:{}", sw.getTotalTimeMillis(), sw.prettyPrint()); return resultList; }