瀏覽代碼

上传shp图形报错。原因:人大金仓数据库不支持st_geometry(wkt,sird)函数

liutao 1 年之前
父節點
當前提交
23065201f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      BJYSYBZ_S/src/main/resources/mapper/YbzBJMapper.xml

+ 1 - 1
BJYSYBZ_S/src/main/resources/mapper/YbzBJMapper.xml

@@ -470,7 +470,7 @@
     <update id="manageSaveWkt" parameterType="com.zjugis.ysgzybz.domain.dto.CommonDTO">
         update sde.bjwkfly2000
         set
-        shape = sde.st_geometry(#{wkt,jdbcType=VARCHAR}, 4490)
+        shape = #{wkt}::geometry
         where dksyh = #{id}
     </update>