From 6eaf84cd70f9c9723ed53a85f49467d2e2728e84 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Mon, 26 Jun 2023 14:41:30 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=AB=98=E5=BE=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/thirdparty/amap/service/impl/AMapServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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; }