ZdjbxxMapper.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.siwei.apply.mapper.cadastre.ZdjbxxMapper">
  6. <resultMap id="BaseResultMap" type="com.siwei.apply.domain.cadastre.Zdjbxx">
  7. <id column="bsm" property="bsm"/>
  8. <result column="ysdm" property="ysdm"/>
  9. <result column="bdcdyh" property="bdcdyh"/>
  10. <result column="ybzddm" property="ybzddm"/>
  11. <result column="zddm" property="zddm"/>
  12. <result column="xmbh" property="xmbh"/>
  13. <result column="dzjgh" property="dzjgh"/>
  14. <result column="glh" property="glh"/>
  15. <result column="zdtzm" property="zdtzm"/>
  16. <result column="dclxtzm" property="dclxtzm"/>
  17. <result column="zl" property="zl"/>
  18. <result column="zdmj" property="zdmj"/>
  19. <result column="mjdw" property="mjdw"/>
  20. <result column="yt" property="yt"/>
  21. <result column="ghytmc" property="ghytmc"/>
  22. <result column="ydyhfl" property="ydyhfl"/>
  23. <result column="dj" property="dj"/>
  24. <result column="jg" property="jg"/>
  25. <result column="jgdw" property="jgdw"/>
  26. <result column="qllx" property="qllx"/>
  27. <result column="qlxz" property="qlxz"/>
  28. <result column="qlsdfs" property="qlsdfs"/>
  29. <result column="rjl" property="rjl"/>
  30. <result column="jzmd" property="jzmd"/>
  31. <result column="jzxg" property="jzxg"/>
  32. <result column="zdszd" property="zdszd"/>
  33. <result column="zdszn" property="zdszn"/>
  34. <result column="zdszx" property="zdszx"/>
  35. <result column="zdszb" property="zdszb"/>
  36. <result column="tfh" property="tfh"/>
  37. <result column="djh" property="djh"/>
  38. <result column="dah" property="dah"/>
  39. <result column="dkdm" property="dkdm"/>
  40. <result column="bz" property="bz"/>
  41. <result column="zt" property="zt"/>
  42. <result column="djzt" property="djzt"/>
  43. <result column="qlrsjsyrlxm" property="qlrsjsyrlxm"/>
  44. <result column="gmjjhyfldm" property="gmjjhyfldm"/>
  45. <result column="xmmc" property="xmmc"/>
  46. <result column="zdmjzyy" property="zdmjzyy"/>
  47. <result column="tdsjyt" property="tdsjyt"/>
  48. <result column="tdsjytmc" property="tdsjytmc"/>
  49. <result column="blc" property="blc"/>
  50. <result column="zjzjdmj" property="zjzjdmj"/>
  51. <result column="zjzmj" property="zjzmj"/>
  52. <result column="jgrq" property="jgrq"/>
  53. <result column="qsdcjs" property="qsdcjs"/>
  54. <result column="gygyqk" property="gygyqk"/>
  55. <result column="sm" property="sm"/>
  56. <result column="dcy" property="dcy"/>
  57. <result column="dcrq" property="dcrq"/>
  58. <result column="bdcchjs" property="bdcchjs"/>
  59. <result column="cly" property="cly"/>
  60. <result column="clrq" property="clrq"/>
  61. <result column="shyj" property="shyj"/>
  62. <result column="shr" property="shr"/>
  63. <result column="shrq" property="shrq"/>
  64. <result column="dcdwjg" property="dcdwjg"/>
  65. <result column="tdzspfwh" property="tdzspfwh"/>
  66. <result column="tdgywjh" property="tdgywjh"/>
  67. <result column="jsydghxkzh" property="jsydghxkzh"/>
  68. <result column="geom" property="geom"/>
  69. <result column="valid_flag" property="validFlag"/>
  70. </resultMap>
  71. <insert id="add" parameterType="com.siwei.apply.domain.cadastre.Zdjbxx">
  72. INSERT INTO vector.zdjbxx (
  73. bsm, ysdm, bdcdyh, ybzddm, zddm, xmbh, dzjgh, glh, zdtzm, dclxtzm,
  74. zl, zdmj, mjdw, yt, ghytmc, ydyhfl, dj, jg, jgdw, qllx, qlxz, qlsdfs,
  75. rjl, jzmd, jzxg, zdszd, zdszn, zdszx, zdszb, tfh, djh, dah, dkdm, bz,
  76. zt, djzt, qlrsjsyrlxm, gmjjhyfldm, xmmc, zdmjzyy, tdsjyt, tdsjytmc,
  77. blc, zjzjdmj, zjzmj, jgrq, qsdcjs, gygyqk, sm, dcy, dcrq, bdcchjs,
  78. cly, clrq, shyj, shr, shrq, dcdwjg, tdzspfwh, tdgywjh, jsydghxkzh,
  79. geom, valid_flag
  80. ) VALUES (
  81. #{bsm}, #{ysdm}, #{bdcdyh}, #{ybzddm}, #{zddm}, #{xmbh}, #{dzjgh}, #{glh},
  82. #{zdtzm}, #{dclxtzm}, #{zl}, #{zdmj}, #{mjdw}, #{yt}, #{ghytmc}, #{ydyhfl},
  83. #{dj}, #{jg}, #{jgdw}, #{qllx}, #{qlxz}, #{qlsdfs}, #{rjl}, #{jzmd},
  84. #{jzxg}, #{zdszd}, #{zdszn}, #{zdszx}, #{zdszb}, #{tfh}, #{djh}, #{dah},
  85. #{dkdm}, #{bz}, #{zt}, #{djzt}, #{qlrsjsyrlxm}, #{gmjjhyfldm}, #{xmmc},
  86. #{zdmjzyy}, #{tdsjyt}, #{tdsjytmc}, #{blc}, #{zjzjdmj}, #{zjzmj},
  87. #{jgrq}, #{qsdcjs}, #{gygyqk}, #{sm}, #{dcy}, #{dcrq}, #{bdcchjs},
  88. #{cly}, #{clrq}, #{shyj}, #{shr}, #{shrq}, #{dcdwjg}, #{tdzspfwh},
  89. #{tdgywjh}, #{jsydghxkzh}, #{geom}, #{validFlag}
  90. )
  91. </insert>
  92. <select id="get" resultMap="BaseResultMap">
  93. SELECT *
  94. FROM vector.zdjbxx
  95. WHERE bsm = #{bsm}
  96. </select>
  97. <select id="getListByDjzqdm" resultMap="BaseResultMap">
  98. SELECT *
  99. FROM vector.zdjbxx
  100. <where>
  101. <if test="djzqdm != null and djzqdm != ''">
  102. and LEFT(zddm, 12) = #{djzqdm}
  103. </if>
  104. </where>
  105. </select>
  106. <select id="getList" resultMap="BaseResultMap">
  107. SELECT *
  108. FROM vector.zdjbxx
  109. </select>
  110. <update id="update" parameterType="com.siwei.apply.domain.cadastre.Zdjbxx">
  111. UPDATE vector.zdjbxx
  112. <set>
  113. <if test="ysdm != null">ysdm = #{ysdm},</if>
  114. <if test="bdcdyh != null">bdcdyh = #{bdcdyh},</if>
  115. <if test="ybzddm != null">ybzddm = #{ybzddm},</if>
  116. <if test="zddm != null">zddm = #{zddm},</if>
  117. <if test="xmbh != null">xmbh = #{xmbh},</if>
  118. <if test="dzjgh != null">dzjgh = #{dzjgh},</if>
  119. <if test="glh != null">glh = #{glh},</if>
  120. <if test="zdtzm != null">zdtzm = #{zdtzm},</if>
  121. <if test="dclxtzm != null">dclxtzm = #{dclxtzm},</if>
  122. <if test="zl != null">zl = #{zl},</if>
  123. <if test="zdmj != null">zdmj = #{zdmj},</if>
  124. <if test="mjdw != null">mjdw = #{mjdw},</if>
  125. <if test="yt != null">yt = #{yt},</if>
  126. <if test="ghytmc != null">ghytmc = #{ghytmc},</if>
  127. <if test="ydyhfl != null">ydyhfl = #{ydyhfl},</if>
  128. <if test="dj != null">dj = #{dj},</if>
  129. <if test="jg != null">jg = #{jg},</if>
  130. <if test="jgdw != null">jgdw = #{jgdw},</if>
  131. <if test="qllx != null">qllx = #{qllx},</if>
  132. <if test="qlxz != null">qlxz = #{qlxz},</if>
  133. <if test="qlsdfs != null">qlsdfs = #{qlsdfs},</if>
  134. <if test="rjl != null">rjl = #{rjl},</if>
  135. <if test="jzmd != null">jzmd = #{jzmd},</if>
  136. <if test="jzxg != null">jzxg = #{jzxg},</if>
  137. <if test="zdszd != null">zdszd = #{zdszd},</if>
  138. <if test="zdszn != null">zdszn = #{zdszn},</if>
  139. <if test="zdszx != null">zdszx = #{zdszx},</if>
  140. <if test="zdszb != null">zdszb = #{zdszb},</if>
  141. <if test="tfh != null">tfh = #{tfh},</if>
  142. <if test="djh != null">djh = #{djh},</if>
  143. <if test="dah != null">dah = #{dah},</if>
  144. <if test="dkdm != null">dkdm = #{dkdm},</if>
  145. <if test="bz != null">bz = #{bz},</if>
  146. <if test="zt != null">zt = #{zt},</if>
  147. <if test="djzt != null">djzt = #{djzt},</if>
  148. <if test="qlrsjsyrlxm != null">qlrsjsyrlxm = #{qlrsjsyrlxm},</if>
  149. <if test="gmjjhyfldm != null">gmjjhyfldm = #{gmjjhyfldm},</if>
  150. <if test="xmmc != null">xmmc = #{xmmc},</if>
  151. <if test="zdmjzyy != null">zdmjzyy = #{zdmjzyy},</if>
  152. <if test="tdsjyt != null">tdsjyt = #{tdsjyt},</if>
  153. <if test="tdsjytmc != null">tdsjytmc = #{tdsjytmc},</if>
  154. <if test="blc != null">blc = #{blc},</if>
  155. <if test="zjzjdmj != null">zjzjdmj = #{zjzjdmj},</if>
  156. <if test="zjzmj != null">zjzmj = #{zjzmj},</if>
  157. <if test="jgrq != null">jgrq = #{jgrq},</if>
  158. <if test="qsdcjs != null">qsdcjs = #{qsdcjs},</if>
  159. <if test="gygyqk != null">gygyqk = #{gygyqk},</if>
  160. <if test="sm != null">sm = #{sm},</if>
  161. <if test="dcy != null">dcy = #{dcy},</if>
  162. <if test="dcrq != null">dcrq = #{dcrq},</if>
  163. <if test="bdcchjs != null">bdcchjs = #{bdcchjs},</if>
  164. <if test="cly != null">cly = #{cly},</if>
  165. <if test="clrq != null">clrq = #{clrq},</if>
  166. <if test="shyj != null">shyj = #{shyj},</if>
  167. <if test="shr != null">shr = #{shr},</if>
  168. <if test="shrq != null">shrq = #{shrq},</if>
  169. <if test="dcdwjg != null">dcdwjg = #{dcdwjg},</if>
  170. <if test="tdzspfwh != null">tdzspfwh = #{tdzspfwh},</if>
  171. <if test="tdgywjh != null">tdgywjh = #{tdgywjh},</if>
  172. <if test="jsydghxkzh != null">jsydghxkzh = #{jsydghxkzh},</if>
  173. <if test="geom != null">geom = #{geom},</if>
  174. <if test="validFlag != null">valid_flag = #{validFlag},</if>
  175. </set>
  176. WHERE bsm = #{bsm}
  177. </update>
  178. <delete id="batchDelete">
  179. DELETE FROM vector.zdjbxx
  180. WHERE bsm IN
  181. <foreach collection="bsms" item="bsm" open="(" separator="," close=")">
  182. #{bsm}
  183. </foreach>
  184. </delete>
  185. <select id="getDictByTypeAndTop" resultType="Map">
  186. SELECT * FROM "vector"."public_dict"
  187. <where>
  188. length(value) = 1
  189. <if test="type != null and type != ''">
  190. AND type =#{type}
  191. </if>
  192. </where>
  193. </select>
  194. <select id="getDictByType" resultType="Map">
  195. SELECT * FROM "vector"."public_dict"
  196. <where>
  197. <if test="type != null and type != ''">
  198. AND type =#{type}
  199. </if>
  200. </where>
  201. </select>
  202. </mapper>