rain
2024-03-27 ac69fbcd2ace5d0f90b0ca6de5f7679526319316
src/main/java/com/dji/sample/patches/service/impl/ShpToDataSourceServiceImpl.java
@@ -9,6 +9,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;
import java.io.IOException;
import java.util.List;
@@ -20,9 +21,6 @@
public class ShpToDataSourceServiceImpl implements ShpToDataSourceService {
    @Autowired
    private ShpToDataSourceMapper mapper;
    private int createTime = 0;
    private int updateTime = 0;
    String Land="N1C1D";
    String head = POLYGON;
@@ -39,9 +37,9 @@
            String temp = arr1[i].trim();
            temp = FormatConversionUtil.modifySpacesAndCommas(temp);
            json = head + temp;
            patches.setBsm(UUID.randomUUID().toString());
            patches.setCreateTime(createTime);
            patches.setUpdateTime(updateTime);
            String uuid = UUID.randomUUID().toString();
            String bsm = uuid.replaceAll("-", "");
            patches.setBsm(bsm);
            patches.setDkfw(json);
            patches.setDkbh(Land+count);
            mapper.insert(patches);