|
|
@@ -14,6 +14,7 @@ import cn.reghao.tnb.content.app.geo.model.vo.MapMarker;
|
|
|
import cn.reghao.tnb.content.app.geo.model.vo.MarkerInfo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -101,6 +102,7 @@ public class PhotoMapService {
|
|
|
cameraPhotoMapper.saveAll(list);
|
|
|
}
|
|
|
|
|
|
+ @Cacheable(cacheNames = "tnb:geo:mark", key = "#itemType", unless = "#result == null")
|
|
|
public List<MapMarker> getPhotoMarks(int itemType) {
|
|
|
int pageSize = 100;
|
|
|
List<MapMarker> list;
|