|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?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.ruoyi.business.mapper.TGisXjqyMapper">
-
- <resultMap type="TGisXjqy" id="TGisXjqyResult">
- <result property="XJQYDM" column="XJQYDM" />
- <result property="XJQYMC" column="XJQYMC" />
- <result property="theGeom" column="the_geom" />
- <result property="BSM" column="BSM" />
- <result property="YSDM" column="YSDM" />
- <result property="fid" column="fid" />
- <result property="importCode" column="import_code" />
- </resultMap>
-
- <sql id="selectTGisXjqyVo">
- select XJQYDM, XJQYMC, the_geom, BSM, YSDM, fid, import_code from t_gis_xjqy
- </sql>
-
- <select id="selectTGisXjqyList" parameterType="TGisXjqy" resultMap="TGisXjqyResult">
- <include refid="selectTGisXjqyVo"/>
- <where>
- <if test="XJQYDM != null and XJQYDM != ''"> and XJQYDM = #{XJQYDM}</if>
- <if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if>
- </where>
- </select>
-
- <select id="selectTGisXjqyByXJQYDM" parameterType="String" resultMap="TGisXjqyResult">
- <include refid="selectTGisXjqyVo"/>
- where XJQYDM = #{XJQYDM}
- </select>
-
- <insert id="insertTGisXjqy" parameterType="TGisXjqy">
- insert into t_gis_xjqy
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="XJQYDM != null">XJQYDM,</if>
- <if test="XJQYMC != null and XJQYMC != ''">XJQYMC,</if>
- <if test="theGeom != null and theGeom != ''">the_geom,</if>
- <if test="BSM != null">BSM,</if>
- <if test="YSDM != null">YSDM,</if>
- <if test="fid != null">fid,</if>
- <if test="importCode != null and importCode != ''">import_code,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="XJQYDM != null">#{XJQYDM},</if>
- <if test="XJQYMC != null and XJQYMC != ''">#{XJQYMC},</if>
- <if test="theGeom != null and theGeom != ''">#{theGeom},</if>
- <if test="BSM != null">#{BSM},</if>
- <if test="YSDM != null">#{YSDM},</if>
- <if test="fid != null">#{fid},</if>
- <if test="importCode != null and importCode != ''">#{importCode},</if>
- </trim>
- </insert>
-
- <insert id="insertTGisXjqyBatch" parameterType="list" >
- insert into t_gis_xjqy
- <trim prefix="(" suffix=")" suffixOverrides=",">
- XJQYDM,
- XJQYMC,
- the_geom,
- BSM,
- YSDM,
- fid,
- import_code,
- </trim>
- values
- <foreach item="item" collection="list" separator="," >
- <trim prefix="(" suffix=")" suffixOverrides=",">
- #{item.XJQYDM},
- #{item.XJQYMC},
- #{item.theGeom},
- #{item.BSM},
- #{item.YSDM},
- #{item.fid},
- #{item.importCode},
- </trim>
- </foreach>
- </insert>
-
- <update id="updateTGisXjqy" parameterType="TGisXjqy">
- update t_gis_xjqy
- <trim prefix="SET" suffixOverrides=",">
- <if test="XJQYMC != null and XJQYMC != ''">XJQYMC = #{XJQYMC},</if>
- <if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if>
- <if test="BSM != null">BSM = #{BSM},</if>
- <if test="YSDM != null">YSDM = #{YSDM},</if>
- <if test="fid != null">fid = #{fid},</if>
- <if test="importCode != null and importCode != ''">import_code = #{importCode},</if>
- </trim>
- where XJQYDM = #{XJQYDM}
- </update>
-
- <!--批量更新-->
- <update id="updateTGisXjqyBatch" parameterType="list" >
- <foreach collection="list" item="item" index="index" open="" close="" separator=";">
- update t_gis_xjqy
- <set>
- <if test="item.XJQYMC != null and item.XJQYMC != ''">XJQYMC = #{item.XJQYMC},</if>
- <if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if>
- <if test="item.BSM != null">BSM = #{item.BSM},</if>
- <if test="item.YSDM != null">YSDM = #{item.YSDM},</if>
- <if test="item.fid != null">fid = #{item.fid},</if>
- <if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if>
- </set>
- where XJQYDM = #{item.XJQYDM}
- </foreach>
- </update>
-
- <delete id="deleteTGisXjqyByXJQYDM" parameterType="String">
- delete from t_gis_xjqy where XJQYDM = #{XJQYDM}
- </delete>
-
- <delete id="deleteTGisXjqyByXJQYDMs" parameterType="String">
- delete from t_gis_xjqy where XJQYDM in
- <foreach item="XJQYDM" collection="array" open="(" separator="," close=")">
- #{XJQYDM}
- </foreach>
- </delete>
- </mapper>
|