浏览代码

存储为小写字符

DESKTOP-2K9OVK9\siwei 4 月之前
父节点
当前提交
e1ab7ab770

+ 1 - 1
onemap-modules/onemap-file/src/main/java/com/onemap/file/service/impl/ShpFileSaveService.java

@@ -112,7 +112,7 @@ public class ShpFileSaveService {
                         String ewkt = "SRID=" + srid + ";" + geom;
                         pg_rk.put(attributesList.get(f_i), ewkt);
                     } else {
-                        pg_rk.put(attributesList.get(f_i), simpleFeature.getAttribute(attributesList.get(f_i)));
+                        pg_rk.put(attributesList.get(f_i).toLowerCase(), simpleFeature.getAttribute(attributesList.get(f_i)));
                     }
 
                 }

+ 1 - 0
onemap-modules/onemap-file/src/main/java/com/onemap/file/service/impl/SpaceFileRecordServiceImpl.java

@@ -294,6 +294,7 @@ public class SpaceFileRecordServiceImpl implements ISpaceFileRecordService {
             detailsDTO.setSridarea(sridArea);
             detailsDTO.setSort(sort);
             detailsDTO.setGeomJson(JSON.toJSONString(shpFeatures));
+            shpFeatures.put("id", detailsDTO.getId());
             tUploadGeomDetailsMapper.insertTUploadGeomDetails(detailsDTO);
             sort++;
         }