rain
2024-04-01 cbc882364d43e66e8a7d2a2256ab951994195457
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 itemId) 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.setItemId(itemId);
            lotInfo.setDkfw(json);
            lotInfo.setDkbh("dkbh"+i);
            mapper.insert(lotInfo);