|
@@ -3,6 +3,7 @@ package com.zjugis.yzt.dao;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.zjugis.yzt.beans.entity.SsnydNew;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
/**
|
|
|
* @program: yh_yzt
|
|
@@ -12,4 +13,13 @@ import org.apache.ibatis.annotations.Mapper;
|
|
|
**/
|
|
|
@Mapper
|
|
|
public interface SsnydNewMapper extends BaseMapper<SsnydNew> {
|
|
|
-}
|
|
|
+ /**
|
|
|
+ * @param id
|
|
|
+ * @param shape
|
|
|
+ * @param wkid
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Update("UPDATE st_nzydk SET shape = st_geometry(#{shape}, #{wkid}) WHERE objectid = #{id}")
|
|
|
+ int updateShapeById(Integer id, String shape, int wkid);
|
|
|
+
|
|
|
+}
|