Commit 06e03c4a authored by 周健威's avatar 周健威

修改代码

parent 9380898e
...@@ -116,8 +116,9 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo ...@@ -116,8 +116,9 @@ public class RscpImageDataTotalController extends BaseController<RscpImageDataTo
return ObjectRestResponse.succ(rscpAreaImageTotalBiz.queryDataList(dto)); return ObjectRestResponse.succ(rscpAreaImageTotalBiz.queryDataList(dto));
}else if(QueryDTO.TYPE_SHP == dto.getType()){ }else if(QueryDTO.TYPE_SHP == dto.getType()){
//shp 转 geom //shp 转 geom
String shpPath = redisTemplate.opsForValue().get(dto.getShpKey()); // String shpPath = redisTemplate.opsForValue().get(dto.getShpKey());
dto.setGeom(ShpToGeojson.shp2geojson(shpPath)); // dto.setGeom(ShpToGeojson.shp2geojson(shpPath));
dto.setGeom(redisTemplate.opsForValue().get(dto.getShpKey()));
return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto)); return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto));
} else { } else {
return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto)); return ObjectRestResponse.succ(baseBiz.queryDataAreaList(dto));
......
...@@ -66,7 +66,7 @@ public class UploadService { ...@@ -66,7 +66,7 @@ public class UploadService {
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(filePath)); FileUtils.copyInputStreamToFile(file.getInputStream(), new File(filePath));
String key = "shp:"+ UUIDUtils.generateShortUuid(); String key = "shp:"+ UUIDUtils.generateShortUuid();
String geomJson = ShpToGeojson.shp2geojson(filePath); String geomJson = ShpToGeojson.shp2geojson(filePath);
redisTemplate.opsForValue().setIfAbsent(key, geomJson); redisTemplate.opsForValue().set(key, geomJson);
// realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath; // realFileRelPath=xx_url+SystemConfig.XXMP_URL+realFileRelPath;
return key; return key;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment