| | |
| | | private ShpToDataSourceMapper mapper; |
| | | String head = POLYGON; |
| | | String json; |
| | | public List<LotInfo> insertGeo(MultipartFile file ,String itemId) 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); |
| | |
| | | String uuid = UUID.randomUUID().toString(); |
| | | String bsm = uuid.replaceAll("-", ""); |
| | | lotInfo.setBsm(bsm); |
| | | lotInfo.setItemId(itemId); |
| | | lotInfo.setWorkspaceId(workspaceId); |
| | | lotInfo.setDkfw(json); |
| | | lotInfo.setDkbh("dkbh"+i); |
| | | mapper.insert(lotInfo); |