|
|
@@ -32,4 +32,34 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <select id="getPoiByName" parameterType="java.lang.String" resultType="com.onemap.apply.domain.yzt.PoiDTO">
|
|
|
+ select t.name,t.adress,public.st_x ( t.geom ) x,public.st_y ( t.geom ) y
|
|
|
+ from poi t where 1=1
|
|
|
+ <if test="nameList != null and nameList.size()>0">
|
|
|
+ and t.name in
|
|
|
+ <foreach collection="nameList" item="name" open="(" separator="," close=")">
|
|
|
+ #{name}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="poiLikeName" resultType="com.onemap.apply.domain.yzt.PoiDTO">
|
|
|
+ select t.name,t.adress,public.st_x ( t.geom ) x,public.st_y ( t.geom ) y
|
|
|
+ from poi t where 1=1
|
|
|
+ <if test="nameList != null and nameList.size()>0">
|
|
|
+ and t.name in
|
|
|
+ <foreach collection="nameList" item="name" open="(" separator="," close=")">
|
|
|
+ #{name}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ limit ${limit} offset ${offset}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|