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; }