|
@@ -215,15 +215,15 @@ public class NodeLandImpl implements NodeLandService {
|
|
|
@Override
|
|
@Override
|
|
|
public Map<String, Object> selectGeomByDbId(String geomDbId) {
|
|
public Map<String, Object> selectGeomByDbId(String geomDbId) {
|
|
|
Map<String, Object> map = new LinkedHashMap<>();
|
|
Map<String, Object> map = new LinkedHashMap<>();
|
|
|
|
|
+ Double area = 0d;
|
|
|
List<Map<String, Object>> list = nodeLandMapper.selectGeomDetailsByGeomDbId(geomDbId);
|
|
List<Map<String, Object>> list = nodeLandMapper.selectGeomDetailsByGeomDbId(geomDbId);
|
|
|
if(CollectionUtils.isNotEmpty(list)){
|
|
if(CollectionUtils.isNotEmpty(list)){
|
|
|
- Double area = 0d;
|
|
|
|
|
for(Map<String,Object> tmpMap : list){
|
|
for(Map<String,Object> tmpMap : list){
|
|
|
area += (Double) tmpMap.get("geom_area");
|
|
area += (Double) tmpMap.get("geom_area");
|
|
|
}
|
|
}
|
|
|
map = list.get(0);
|
|
map = list.get(0);
|
|
|
- map.put("geom_area", area);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ map.put("geom_area", area);
|
|
|
return map;
|
|
return map;
|
|
|
}
|
|
}
|
|
|
|
|
|