From eac73ee7ba088af61f0bc62e68b29d6a9a38ddb3 Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Wed, 21 Jun 2023 10:40:25 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=8A=A0=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../thirdparty/amap/service/impl/AMapServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ba35e6b9a..8c5df4d0a 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 @@ -16,6 +16,7 @@ import com.jsowell.pile.vo.web.PileModelInfoVO; import com.jsowell.thirdparty.amap.domain.*; import com.jsowell.thirdparty.amap.service.AMapService; import com.jsowell.thirdparty.amap.util.AMapUtils; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -32,6 +33,7 @@ import java.util.Map; * @author Lemon * @Date 2023/6/14 13:54 */ +@Slf4j @Service public class AMapServiceImpl implements AMapService { @@ -60,7 +62,7 @@ public class AMapServiceImpl implements AMapService { */ @Override public List getStationInfos(GetStationInfoDTO dto) { - StopWatch sw = new StopWatch("高德拉取充电站静态数据"); + StopWatch sw = new StopWatch(); List resultList = new ArrayList<>(); if (StringUtils.equals("page", dto.getType())) { @@ -119,6 +121,7 @@ public class AMapServiceImpl implements AMapService { resultList.add(aMapInfo); } sw.stop(); + log.info("接口耗时:{}", sw.prettyPrint()); return resultList; }