rain
2024-04-02 f62b1714751bd58f7d955b9861899141d8835b7d
src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java
@@ -24,7 +24,7 @@
    private ShpToDataSourceMapper mapper;
    String head = POLYGON;
    String json;
    public List<LotInfo> insertGeo(MultipartFile file) throws IOException {
    public List<LotInfo> insertGeo(MultipartFile file ,String workspaceId) throws IOException {
        List<LotInfo> list=new ArrayList<>();
        MultipartFileTOFileUtil multipartFileTOFileUtil = new MultipartFileTOFileUtil();
        File file1 = multipartFileTOFileUtil.multipartFile2File(file);
@@ -38,6 +38,7 @@
            String uuid = UUID.randomUUID().toString();
            String bsm = uuid.replaceAll("-", "");
            lotInfo.setBsm(bsm);
            lotInfo.setWorkspaceId(workspaceId);
            lotInfo.setDkfw(json);
            lotInfo.setDkbh("dkbh"+i);
            mapper.insert(lotInfo);