| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <?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.siwei.apply.mapper.cadastre.ZdjbxxMapper">
- <resultMap id="BaseResultMap" type="com.siwei.apply.domain.cadastre.Zdjbxx">
- <id column="bsm" property="bsm"/>
- <result column="ysdm" property="ysdm"/>
- <result column="bdcdyh" property="bdcdyh"/>
- <result column="ybzddm" property="ybzddm"/>
- <result column="zddm" property="zddm"/>
- <result column="xmbh" property="xmbh"/>
- <result column="dzjgh" property="dzjgh"/>
- <result column="glh" property="glh"/>
- <result column="zdtzm" property="zdtzm"/>
- <result column="dclxtzm" property="dclxtzm"/>
- <result column="zl" property="zl"/>
- <result column="zdmj" property="zdmj"/>
- <result column="mjdw" property="mjdw"/>
- <result column="yt" property="yt"/>
- <result column="ghytmc" property="ghytmc"/>
- <result column="ydyhfl" property="ydyhfl"/>
- <result column="dj" property="dj"/>
- <result column="jg" property="jg"/>
- <result column="jgdw" property="jgdw"/>
- <result column="qllx" property="qllx"/>
- <result column="qlxz" property="qlxz"/>
- <result column="qlsdfs" property="qlsdfs"/>
- <result column="rjl" property="rjl"/>
- <result column="jzmd" property="jzmd"/>
- <result column="jzxg" property="jzxg"/>
- <result column="zdszd" property="zdszd"/>
- <result column="zdszn" property="zdszn"/>
- <result column="zdszx" property="zdszx"/>
- <result column="zdszb" property="zdszb"/>
- <result column="tfh" property="tfh"/>
- <result column="djh" property="djh"/>
- <result column="dah" property="dah"/>
- <result column="dkdm" property="dkdm"/>
- <result column="bz" property="bz"/>
- <result column="zt" property="zt"/>
- <result column="djzt" property="djzt"/>
- <result column="qlrsjsyrlxm" property="qlrsjsyrlxm"/>
- <result column="gmjjhyfldm" property="gmjjhyfldm"/>
- <result column="xmmc" property="xmmc"/>
- <result column="zdmjzyy" property="zdmjzyy"/>
- <result column="tdsjyt" property="tdsjyt"/>
- <result column="tdsjytmc" property="tdsjytmc"/>
- <result column="blc" property="blc"/>
- <result column="zjzjdmj" property="zjzjdmj"/>
- <result column="zjzmj" property="zjzmj"/>
- <result column="jgrq" property="jgrq"/>
- <result column="qsdcjs" property="qsdcjs"/>
- <result column="gygyqk" property="gygyqk"/>
- <result column="sm" property="sm"/>
- <result column="dcy" property="dcy"/>
- <result column="dcrq" property="dcrq"/>
- <result column="bdcchjs" property="bdcchjs"/>
- <result column="cly" property="cly"/>
- <result column="clrq" property="clrq"/>
- <result column="shyj" property="shyj"/>
- <result column="shr" property="shr"/>
- <result column="shrq" property="shrq"/>
- <result column="dcdwjg" property="dcdwjg"/>
- <result column="tdzspfwh" property="tdzspfwh"/>
- <result column="tdgywjh" property="tdgywjh"/>
- <result column="jsydghxkzh" property="jsydghxkzh"/>
- <result column="geom" property="geom"/>
- <result column="valid_flag" property="validFlag"/>
- </resultMap>
- <insert id="add" parameterType="com.siwei.apply.domain.cadastre.Zdjbxx">
- INSERT INTO vector.zdjbxx (
- bsm, ysdm, bdcdyh, ybzddm, zddm, xmbh, dzjgh, glh, zdtzm, dclxtzm,
- zl, zdmj, mjdw, yt, ghytmc, ydyhfl, dj, jg, jgdw, qllx, qlxz, qlsdfs,
- rjl, jzmd, jzxg, zdszd, zdszn, zdszx, zdszb, tfh, djh, dah, dkdm, bz,
- zt, djzt, qlrsjsyrlxm, gmjjhyfldm, xmmc, zdmjzyy, tdsjyt, tdsjytmc,
- blc, zjzjdmj, zjzmj, jgrq, qsdcjs, gygyqk, sm, dcy, dcrq, bdcchjs,
- cly, clrq, shyj, shr, shrq, dcdwjg, tdzspfwh, tdgywjh, jsydghxkzh,
- geom, valid_flag
- ) VALUES (
- #{bsm}, #{ysdm}, #{bdcdyh}, #{ybzddm}, #{zddm}, #{xmbh}, #{dzjgh}, #{glh},
- #{zdtzm}, #{dclxtzm}, #{zl}, #{zdmj}, #{mjdw}, #{yt}, #{ghytmc}, #{ydyhfl},
- #{dj}, #{jg}, #{jgdw}, #{qllx}, #{qlxz}, #{qlsdfs}, #{rjl}, #{jzmd},
- #{jzxg}, #{zdszd}, #{zdszn}, #{zdszx}, #{zdszb}, #{tfh}, #{djh}, #{dah},
- #{dkdm}, #{bz}, #{zt}, #{djzt}, #{qlrsjsyrlxm}, #{gmjjhyfldm}, #{xmmc},
- #{zdmjzyy}, #{tdsjyt}, #{tdsjytmc}, #{blc}, #{zjzjdmj}, #{zjzmj},
- #{jgrq}, #{qsdcjs}, #{gygyqk}, #{sm}, #{dcy}, #{dcrq}, #{bdcchjs},
- #{cly}, #{clrq}, #{shyj}, #{shr}, #{shrq}, #{dcdwjg}, #{tdzspfwh},
- #{tdgywjh}, #{jsydghxkzh}, #{geom}, #{validFlag}
- )
- </insert>
- <select id="get" resultMap="BaseResultMap">
- SELECT *
- FROM vector.zdjbxx
- WHERE bsm = #{bsm}
- </select>
- <select id="getListByDjzqdm" resultMap="BaseResultMap">
- SELECT *
- FROM vector.zdjbxx
- <where>
- <if test="djzqdm != null and djzqdm != ''">
- and LEFT(zddm, 12) = #{djzqdm}
- </if>
- </where>
- </select>
- <select id="getList" resultMap="BaseResultMap">
- SELECT *
- FROM vector.zdjbxx
- </select>
- <update id="update" parameterType="com.siwei.apply.domain.cadastre.Zdjbxx">
- UPDATE vector.zdjbxx
- <set>
- <if test="ysdm != null">ysdm = #{ysdm},</if>
- <if test="bdcdyh != null">bdcdyh = #{bdcdyh},</if>
- <if test="ybzddm != null">ybzddm = #{ybzddm},</if>
- <if test="zddm != null">zddm = #{zddm},</if>
- <if test="xmbh != null">xmbh = #{xmbh},</if>
- <if test="dzjgh != null">dzjgh = #{dzjgh},</if>
- <if test="glh != null">glh = #{glh},</if>
- <if test="zdtzm != null">zdtzm = #{zdtzm},</if>
- <if test="dclxtzm != null">dclxtzm = #{dclxtzm},</if>
- <if test="zl != null">zl = #{zl},</if>
- <if test="zdmj != null">zdmj = #{zdmj},</if>
- <if test="mjdw != null">mjdw = #{mjdw},</if>
- <if test="yt != null">yt = #{yt},</if>
- <if test="ghytmc != null">ghytmc = #{ghytmc},</if>
- <if test="ydyhfl != null">ydyhfl = #{ydyhfl},</if>
- <if test="dj != null">dj = #{dj},</if>
- <if test="jg != null">jg = #{jg},</if>
- <if test="jgdw != null">jgdw = #{jgdw},</if>
- <if test="qllx != null">qllx = #{qllx},</if>
- <if test="qlxz != null">qlxz = #{qlxz},</if>
- <if test="qlsdfs != null">qlsdfs = #{qlsdfs},</if>
- <if test="rjl != null">rjl = #{rjl},</if>
- <if test="jzmd != null">jzmd = #{jzmd},</if>
- <if test="jzxg != null">jzxg = #{jzxg},</if>
- <if test="zdszd != null">zdszd = #{zdszd},</if>
- <if test="zdszn != null">zdszn = #{zdszn},</if>
- <if test="zdszx != null">zdszx = #{zdszx},</if>
- <if test="zdszb != null">zdszb = #{zdszb},</if>
- <if test="tfh != null">tfh = #{tfh},</if>
- <if test="djh != null">djh = #{djh},</if>
- <if test="dah != null">dah = #{dah},</if>
- <if test="dkdm != null">dkdm = #{dkdm},</if>
- <if test="bz != null">bz = #{bz},</if>
- <if test="zt != null">zt = #{zt},</if>
- <if test="djzt != null">djzt = #{djzt},</if>
- <if test="qlrsjsyrlxm != null">qlrsjsyrlxm = #{qlrsjsyrlxm},</if>
- <if test="gmjjhyfldm != null">gmjjhyfldm = #{gmjjhyfldm},</if>
- <if test="xmmc != null">xmmc = #{xmmc},</if>
- <if test="zdmjzyy != null">zdmjzyy = #{zdmjzyy},</if>
- <if test="tdsjyt != null">tdsjyt = #{tdsjyt},</if>
- <if test="tdsjytmc != null">tdsjytmc = #{tdsjytmc},</if>
- <if test="blc != null">blc = #{blc},</if>
- <if test="zjzjdmj != null">zjzjdmj = #{zjzjdmj},</if>
- <if test="zjzmj != null">zjzmj = #{zjzmj},</if>
- <if test="jgrq != null">jgrq = #{jgrq},</if>
- <if test="qsdcjs != null">qsdcjs = #{qsdcjs},</if>
- <if test="gygyqk != null">gygyqk = #{gygyqk},</if>
- <if test="sm != null">sm = #{sm},</if>
- <if test="dcy != null">dcy = #{dcy},</if>
- <if test="dcrq != null">dcrq = #{dcrq},</if>
- <if test="bdcchjs != null">bdcchjs = #{bdcchjs},</if>
- <if test="cly != null">cly = #{cly},</if>
- <if test="clrq != null">clrq = #{clrq},</if>
- <if test="shyj != null">shyj = #{shyj},</if>
- <if test="shr != null">shr = #{shr},</if>
- <if test="shrq != null">shrq = #{shrq},</if>
- <if test="dcdwjg != null">dcdwjg = #{dcdwjg},</if>
- <if test="tdzspfwh != null">tdzspfwh = #{tdzspfwh},</if>
- <if test="tdgywjh != null">tdgywjh = #{tdgywjh},</if>
- <if test="jsydghxkzh != null">jsydghxkzh = #{jsydghxkzh},</if>
- <if test="geom != null">geom = #{geom},</if>
- <if test="validFlag != null">valid_flag = #{validFlag},</if>
- </set>
- WHERE bsm = #{bsm}
- </update>
- <delete id="batchDelete">
- DELETE FROM vector.zdjbxx
- WHERE bsm IN
- <foreach collection="bsms" item="bsm" open="(" separator="," close=")">
- #{bsm}
- </foreach>
- </delete>
- <select id="getDictByTypeAndTop" resultType="Map">
- SELECT * FROM "vector"."public_dict"
- <where>
- length(value) = 1
- <if test="type != null and type != ''">
- AND type =#{type}
- </if>
- </where>
- </select>
- <select id="getDictByType" resultType="Map">
- SELECT * FROM "vector"."public_dict"
- <where>
- <if test="type != null and type != ''">
- AND type =#{type}
- </if>
- </where>
- </select>
- </mapper>
|