|
@@ -1,24 +1,24 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.onemap.apply.mapper.tdgy.LandIdleDisposalMapper">
|
|
|
- <select id="getSuspectedIdleLand" resultType="map">
|
|
|
- SELECT id, xmmc, crmj, ydkgsj
|
|
|
- from tdgy_sj
|
|
|
- WHERE (sfjg!=true or sfjg is null)
|
|
|
- and (NOW() - sjkgsj > INTERVAL '365 days')
|
|
|
- <if test="key != null and key != ''">
|
|
|
- and (xmmc like '%'||#{key}||'%' or srf like '%'||#{key}||'%')
|
|
|
- </if>
|
|
|
- <if test="xzqh != null and xzqh != ''">
|
|
|
- and xzqh = #{xzqh}
|
|
|
- </if>
|
|
|
- limit #{limit} offset #{offset};
|
|
|
- </select>
|
|
|
+<!-- <select id="getSuspectedIdleLand" resultType="map">-->
|
|
|
+<!-- SELECT id, xmmc, crmj, ydkgsj-->
|
|
|
+<!-- from tdgy_sj-->
|
|
|
+<!-- WHERE (sfjg!=true or sfjg is null)-->
|
|
|
+<!-- and (NOW() - sjkgsj > INTERVAL '365 days')-->
|
|
|
+<!-- <if test="key != null and key != ''">-->
|
|
|
+<!-- and (xmmc like '%'||#{key}||'%' or srf like '%'||#{key}||'%')-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- <if test="xzqh != null and xzqh != ''">-->
|
|
|
+<!-- and xzqh = #{xzqh}-->
|
|
|
+<!-- </if>-->
|
|
|
+<!-- limit #{limit} offset #{offset};-->
|
|
|
+<!-- </select>-->
|
|
|
|
|
|
- <select id="getLandGeometry" resultType="String">
|
|
|
- public.st_asewkt(public.st_union(geom))
|
|
|
- from "TB_TDGY_SJ"
|
|
|
- WHERE pid=
|
|
|
- #{pid};
|
|
|
- </select>
|
|
|
+<!-- <select id="getLandGeometry" resultType="String">-->
|
|
|
+<!-- public.st_asewkt(public.st_union(geom))-->
|
|
|
+<!-- from "TB_TDGY_SJ"-->
|
|
|
+<!-- WHERE pid=-->
|
|
|
+<!-- #{pid};-->
|
|
|
+<!-- </select>-->
|
|
|
</mapper>
|