123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?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.gdbh.GdbhMapper">
- <select id="selectGdbhList" resultType="com.onemap.apply.domain.gdbh.GdbhDto">
- select bsm, xmmc, xzfw, xzmj, status,rwcjsj,rwzt
- from t_gdbh t
- where t.status = 1
- <if test="xmmc != null and xmmc != ''">
- and t.xmmc like concat('%',#{xmmc},'%')
- </if>
- <if test="kssj != null and kssj != ''">
- and t.rwcjsj >= to_date(#{kssj}, 'yyyy-MM-dd hh24:mi:ss')
- </if>
- <if test="jssj != null and jssj != ''">
- and t.rwcjsj <= to_date(#{jssj}, 'yyyy-MM-dd hh24:mi:ss')
- </if>
- <if test="cjUserId != null and cjUserId != ''">
- and t.cj_user_id = #{cjUserId}
- </if>
- order by t.rwcjsj desc
- </select>
- <select id="selectGdbhXzfw" parameterType="java.lang.String" resultType="map">
- SELECT id,
- public.st_asewkt(geom) AS geom,
- area,
- create_time
- FROM t_fzss_zhxz_file
- WHERE id = #{id}
- </select>
- <select id="getGdbhFlightTb" resultType="map">
- SELECT DISTINCT
- gdbhm.ID,
- PUBLIC.st_asewkt ( gdbhm.geom )
- FROM
- base.t_gdbh_flight AS flight,
- vector."TB_GDBHMB" AS gdbhm
- WHERE
- PUBLIC.st_intersects ( flight.geom, gdbhm.geom );
- </select>
- </mapper>
|