|
@@ -0,0 +1,213 @@
|
|
|
+<?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.qytdzz.TQytdzzZzxmMapper">
|
|
|
+
|
|
|
+ <resultMap type="TQytdzzZzxm" id="TQytdzzZzxmResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="geom" column="geom" />
|
|
|
+ <result property="tbbh" column="tbbh" />
|
|
|
+ <result property="dlbm" column="dlbm" />
|
|
|
+ <result property="dlmc" column="dlmc" />
|
|
|
+ <result property="qsxz" column="qsxz" />
|
|
|
+ <result property="tbmj" column="tbmj" />
|
|
|
+ <result property="kcdlbm" column="kcdlbm" />
|
|
|
+ <result property="kcxs" column="kcxs" />
|
|
|
+ <result property="kcmj" column="kcmj" />
|
|
|
+ <result property="tbdlmj" column="tbdlmj" />
|
|
|
+ <result property="gdlx" column="gdlx" />
|
|
|
+ <result property="gdpdjb" column="gdpdjb" />
|
|
|
+ <result property="frdbs" column="frdbs" />
|
|
|
+ <result property="czcsxm" column="czcsxm" />
|
|
|
+ <result property="sjnf" column="sjnf" />
|
|
|
+ <result property="bz" column="bz" />
|
|
|
+ <result property="bsm" column="bsm" />
|
|
|
+ <result property="ysdm" column="ysdm" />
|
|
|
+ <result property="项目类型" column="项目类型" />
|
|
|
+ <result property="项目名称" column="项目名称" />
|
|
|
+ <result property="zzhdlmc" column="zzhdlmc" />
|
|
|
+ <result property="qsdwdm" column="qsdwdm" />
|
|
|
+ <result property="qsdwmc" column="qsdwmc" />
|
|
|
+ <result property="zldwdm" column="zldwdm" />
|
|
|
+ <result property="zldwmc" column="zldwmc" />
|
|
|
+ <result property="xzgdlydlbm" column="xzgdlydlbm" />
|
|
|
+ <result property="zzhdlbm" column="zzhdlbm" />
|
|
|
+ <result property="xzgdlydlmc" column="xzgdlydlmc" />
|
|
|
+ <result property="xzgdmj" column="xzgdmj" />
|
|
|
+ <result property="xzgddb" column="xzgddb" />
|
|
|
+ <result property="xzgdlyxm" column="xzgdlyxm" />
|
|
|
+ <result property="pid" column="pid" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTQytdzzZzxmVo">
|
|
|
+ select id, public.st_asewkt(public.st_force2d(geom)) geom, tbbh, dlbm, dlmc, qsxz, tbmj, kcdlbm, kcxs, kcmj, tbdlmj, gdlx, gdpdjb, frdbs, czcsxm, sjnf, bz, bsm, ysdm, 项目类型, 项目名称, zzhdlmc, qsdwdm, qsdwmc, zldwdm, zldwmc, xzgdlydlbm, zzhdlbm, xzgdlydlmc, xzgdmj, xzgddb, xzgdlyxm, pid from t_qytdzz_zzxm
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTQytdzzZzxmList" parameterType="TQytdzzZzxm" resultMap="TQytdzzZzxmResult">
|
|
|
+ <include refid="selectTQytdzzZzxmVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="geom != null and geom != ''"> and geom = #{geom}</if>
|
|
|
+ <if test="tbbh != null and tbbh != ''"> and tbbh = #{tbbh}</if>
|
|
|
+ <if test="dlbm != null and dlbm != ''"> and dlbm = #{dlbm}</if>
|
|
|
+ <if test="dlmc != null and dlmc != ''"> and dlmc = #{dlmc}</if>
|
|
|
+ <if test="qsxz != null and qsxz != ''"> and qsxz = #{qsxz}</if>
|
|
|
+ <if test="tbmj != null "> and tbmj = #{tbmj}</if>
|
|
|
+ <if test="kcdlbm != null and kcdlbm != ''"> and kcdlbm = #{kcdlbm}</if>
|
|
|
+ <if test="kcxs != null "> and kcxs = #{kcxs}</if>
|
|
|
+ <if test="kcmj != null "> and kcmj = #{kcmj}</if>
|
|
|
+ <if test="tbdlmj != null "> and tbdlmj = #{tbdlmj}</if>
|
|
|
+ <if test="gdlx != null and gdlx != ''"> and gdlx = #{gdlx}</if>
|
|
|
+ <if test="gdpdjb != null and gdpdjb != ''"> and gdpdjb = #{gdpdjb}</if>
|
|
|
+ <if test="frdbs != null and frdbs != ''"> and frdbs = #{frdbs}</if>
|
|
|
+ <if test="czcsxm != null and czcsxm != ''"> and czcsxm = #{czcsxm}</if>
|
|
|
+ <if test="sjnf != null "> and sjnf = #{sjnf}</if>
|
|
|
+ <if test="bz != null and bz != ''"> and bz = #{bz}</if>
|
|
|
+ <if test="bsm != null and bsm != ''"> and bsm = #{bsm}</if>
|
|
|
+ <if test="ysdm != null and ysdm != ''"> and ysdm = #{ysdm}</if>
|
|
|
+ <if test="项目类型 != null and 项目类型 != ''"> and 项目类型 = #{项目类型}</if>
|
|
|
+ <if test="项目名称 != null and 项目名称 != ''"> and 项目名称 = #{项目名称}</if>
|
|
|
+ <if test="zzhdlmc != null and zzhdlmc != ''"> and zzhdlmc = #{zzhdlmc}</if>
|
|
|
+ <if test="qsdwdm != null and qsdwdm != ''"> and qsdwdm = #{qsdwdm}</if>
|
|
|
+ <if test="qsdwmc != null and qsdwmc != ''"> and qsdwmc = #{qsdwmc}</if>
|
|
|
+ <if test="zldwdm != null and zldwdm != ''"> and zldwdm = #{zldwdm}</if>
|
|
|
+ <if test="zldwmc != null and zldwmc != ''"> and zldwmc = #{zldwmc}</if>
|
|
|
+ <if test="xzgdlydlbm != null and xzgdlydlbm != ''"> and xzgdlydlbm = #{xzgdlydlbm}</if>
|
|
|
+ <if test="zzhdlbm != null and zzhdlbm != ''"> and zzhdlbm = #{zzhdlbm}</if>
|
|
|
+ <if test="xzgdlydlmc != null and xzgdlydlmc != ''"> and xzgdlydlmc = #{xzgdlydlmc}</if>
|
|
|
+ <if test="xzgdmj != null "> and xzgdmj = #{xzgdmj}</if>
|
|
|
+ <if test="xzgddb != null and xzgddb != ''"> and xzgddb = #{xzgddb}</if>
|
|
|
+ <if test="xzgdlyxm != null and xzgdlyxm != ''"> and xzgdlyxm = #{xzgdlyxm}</if>
|
|
|
+ <if test="pid != null "> and pid = #{pid}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTQytdzzZzxmById" parameterType="Long" resultMap="TQytdzzZzxmResult">
|
|
|
+ <include refid="selectTQytdzzZzxmVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTQytdzzZzxm" parameterType="TQytdzzZzxm">
|
|
|
+ insert into t_qytdzz_zzxm
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="geom != null">geom,</if>
|
|
|
+ <if test="tbbh != null">tbbh,</if>
|
|
|
+ <if test="dlbm != null">dlbm,</if>
|
|
|
+ <if test="dlmc != null">dlmc,</if>
|
|
|
+ <if test="qsxz != null">qsxz,</if>
|
|
|
+ <if test="tbmj != null">tbmj,</if>
|
|
|
+ <if test="kcdlbm != null">kcdlbm,</if>
|
|
|
+ <if test="kcxs != null">kcxs,</if>
|
|
|
+ <if test="kcmj != null">kcmj,</if>
|
|
|
+ <if test="tbdlmj != null">tbdlmj,</if>
|
|
|
+ <if test="gdlx != null">gdlx,</if>
|
|
|
+ <if test="gdpdjb != null">gdpdjb,</if>
|
|
|
+ <if test="frdbs != null">frdbs,</if>
|
|
|
+ <if test="czcsxm != null">czcsxm,</if>
|
|
|
+ <if test="sjnf != null">sjnf,</if>
|
|
|
+ <if test="bz != null">bz,</if>
|
|
|
+ <if test="bsm != null">bsm,</if>
|
|
|
+ <if test="ysdm != null">ysdm,</if>
|
|
|
+ <if test="项目类型 != null">项目类型,</if>
|
|
|
+ <if test="项目名称 != null">项目名称,</if>
|
|
|
+ <if test="zzhdlmc != null">zzhdlmc,</if>
|
|
|
+ <if test="qsdwdm != null">qsdwdm,</if>
|
|
|
+ <if test="qsdwmc != null">qsdwmc,</if>
|
|
|
+ <if test="zldwdm != null">zldwdm,</if>
|
|
|
+ <if test="zldwmc != null">zldwmc,</if>
|
|
|
+ <if test="xzgdlydlbm != null">xzgdlydlbm,</if>
|
|
|
+ <if test="zzhdlbm != null">zzhdlbm,</if>
|
|
|
+ <if test="xzgdlydlmc != null">xzgdlydlmc,</if>
|
|
|
+ <if test="xzgdmj != null">xzgdmj,</if>
|
|
|
+ <if test="xzgddb != null">xzgddb,</if>
|
|
|
+ <if test="xzgdlyxm != null">xzgdlyxm,</if>
|
|
|
+ <if test="pid != null">pid,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="geom != null">#{geom},</if>
|
|
|
+ <if test="tbbh != null">#{tbbh},</if>
|
|
|
+ <if test="dlbm != null">#{dlbm},</if>
|
|
|
+ <if test="dlmc != null">#{dlmc},</if>
|
|
|
+ <if test="qsxz != null">#{qsxz},</if>
|
|
|
+ <if test="tbmj != null">#{tbmj},</if>
|
|
|
+ <if test="kcdlbm != null">#{kcdlbm},</if>
|
|
|
+ <if test="kcxs != null">#{kcxs},</if>
|
|
|
+ <if test="kcmj != null">#{kcmj},</if>
|
|
|
+ <if test="tbdlmj != null">#{tbdlmj},</if>
|
|
|
+ <if test="gdlx != null">#{gdlx},</if>
|
|
|
+ <if test="gdpdjb != null">#{gdpdjb},</if>
|
|
|
+ <if test="frdbs != null">#{frdbs},</if>
|
|
|
+ <if test="czcsxm != null">#{czcsxm},</if>
|
|
|
+ <if test="sjnf != null">#{sjnf},</if>
|
|
|
+ <if test="bz != null">#{bz},</if>
|
|
|
+ <if test="bsm != null">#{bsm},</if>
|
|
|
+ <if test="ysdm != null">#{ysdm},</if>
|
|
|
+ <if test="项目类型 != null">#{项目类型},</if>
|
|
|
+ <if test="项目名称 != null">#{项目名称},</if>
|
|
|
+ <if test="zzhdlmc != null">#{zzhdlmc},</if>
|
|
|
+ <if test="qsdwdm != null">#{qsdwdm},</if>
|
|
|
+ <if test="qsdwmc != null">#{qsdwmc},</if>
|
|
|
+ <if test="zldwdm != null">#{zldwdm},</if>
|
|
|
+ <if test="zldwmc != null">#{zldwmc},</if>
|
|
|
+ <if test="xzgdlydlbm != null">#{xzgdlydlbm},</if>
|
|
|
+ <if test="zzhdlbm != null">#{zzhdlbm},</if>
|
|
|
+ <if test="xzgdlydlmc != null">#{xzgdlydlmc},</if>
|
|
|
+ <if test="xzgdmj != null">#{xzgdmj},</if>
|
|
|
+ <if test="xzgddb != null">#{xzgddb},</if>
|
|
|
+ <if test="xzgdlyxm != null">#{xzgdlyxm},</if>
|
|
|
+ <if test="pid != null">#{pid},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTQytdzzZzxm" parameterType="TQytdzzZzxm">
|
|
|
+ update t_qytdzz_zzxm
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="geom != null">geom = #{geom},</if>
|
|
|
+ <if test="tbbh != null">tbbh = #{tbbh},</if>
|
|
|
+ <if test="dlbm != null">dlbm = #{dlbm},</if>
|
|
|
+ <if test="dlmc != null">dlmc = #{dlmc},</if>
|
|
|
+ <if test="qsxz != null">qsxz = #{qsxz},</if>
|
|
|
+ <if test="tbmj != null">tbmj = #{tbmj},</if>
|
|
|
+ <if test="kcdlbm != null">kcdlbm = #{kcdlbm},</if>
|
|
|
+ <if test="kcxs != null">kcxs = #{kcxs},</if>
|
|
|
+ <if test="kcmj != null">kcmj = #{kcmj},</if>
|
|
|
+ <if test="tbdlmj != null">tbdlmj = #{tbdlmj},</if>
|
|
|
+ <if test="gdlx != null">gdlx = #{gdlx},</if>
|
|
|
+ <if test="gdpdjb != null">gdpdjb = #{gdpdjb},</if>
|
|
|
+ <if test="frdbs != null">frdbs = #{frdbs},</if>
|
|
|
+ <if test="czcsxm != null">czcsxm = #{czcsxm},</if>
|
|
|
+ <if test="sjnf != null">sjnf = #{sjnf},</if>
|
|
|
+ <if test="bz != null">bz = #{bz},</if>
|
|
|
+ <if test="bsm != null">bsm = #{bsm},</if>
|
|
|
+ <if test="ysdm != null">ysdm = #{ysdm},</if>
|
|
|
+ <if test="项目类型 != null">项目类型 = #{项目类型},</if>
|
|
|
+ <if test="项目名称 != null">项目名称 = #{项目名称},</if>
|
|
|
+ <if test="zzhdlmc != null">zzhdlmc = #{zzhdlmc},</if>
|
|
|
+ <if test="qsdwdm != null">qsdwdm = #{qsdwdm},</if>
|
|
|
+ <if test="qsdwmc != null">qsdwmc = #{qsdwmc},</if>
|
|
|
+ <if test="zldwdm != null">zldwdm = #{zldwdm},</if>
|
|
|
+ <if test="zldwmc != null">zldwmc = #{zldwmc},</if>
|
|
|
+ <if test="xzgdlydlbm != null">xzgdlydlbm = #{xzgdlydlbm},</if>
|
|
|
+ <if test="zzhdlbm != null">zzhdlbm = #{zzhdlbm},</if>
|
|
|
+ <if test="xzgdlydlmc != null">xzgdlydlmc = #{xzgdlydlmc},</if>
|
|
|
+ <if test="xzgdmj != null">xzgdmj = #{xzgdmj},</if>
|
|
|
+ <if test="xzgddb != null">xzgddb = #{xzgddb},</if>
|
|
|
+ <if test="xzgdlyxm != null">xzgdlyxm = #{xzgdlyxm},</if>
|
|
|
+ <if test="pid != null">pid = #{pid},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteTQytdzzZzxmById" parameterType="Long">
|
|
|
+ delete from t_qytdzz_zzxm where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTQytdzzZzxmByIds" parameterType="String">
|
|
|
+ delete from t_qytdzz_zzxm where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|