| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?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.system.mapper.CesiumGeojsonMapper">
- <resultMap type="com.ruoyi.system.domain.CesiumGeojson" id="CesiumGeojsonResult">
- <result property="id" column="id" />
- <result property="userId" column="user_id" />
- <result property="layerName" column="layer_name" />
- <result property="fileName" column="file_name" />
- <result property="geojsonUrl" column="geojson_url" />
- <result property="originalData" column="original_data" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="remark" column="remark" />
- </resultMap>
- <sql id="selectCesiumGeojsonVo">
- select id, user_id, layer_name, file_name, geojson_url, original_data,
- create_by, create_time, update_by, update_time, remark
- from cesium_geojson
- </sql>
- <select id="selectCesiumGeojsonById" parameterType="Long" resultMap="CesiumGeojsonResult">
- <include refid="selectCesiumGeojsonVo"/>
- where id = #{id}
- </select>
- <select id="selectCesiumGeojsonList" parameterType="com.ruoyi.system.domain.CesiumGeojson" resultMap="CesiumGeojsonResult">
- <include refid="selectCesiumGeojsonVo"/>
- <where>
- <if test="userId != null"> and user_id = #{userId}</if>
- <if test="layerName != null and layerName != ''"> and layer_name like concat('%', #{layerName}, '%')</if>
- <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
- </where>
- order by create_time desc
- </select>
- <insert id="insertCesiumGeojson" parameterType="com.ruoyi.system.domain.CesiumGeojson" useGeneratedKeys="true" keyProperty="id">
- insert into cesium_geojson
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="userId != null">user_id,</if>
- <if test="layerName != null and layerName != ''">layer_name,</if>
- <if test="fileName != null and fileName != ''">file_name,</if>
- <if test="geojsonUrl != null and geojsonUrl != ''">geojson_url,</if>
- <if test="originalData != null">original_data,</if>
- <if test="createBy != null and createBy != ''">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null and updateBy != ''">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="remark != null and remark != ''">remark,</if>
- </trim>
- <trim prefix="VALUES (" suffix=")" suffixOverrides=",">
- <if test="userId != null">#{userId},</if>
- <if test="layerName != null and layerName != ''">#{layerName},</if>
- <if test="fileName != null and fileName != ''">#{fileName},</if>
- <if test="geojsonUrl != null and geojsonUrl != ''">#{geojsonUrl},</if>
- <if test="originalData != null">#{originalData},</if>
- <if test="createBy != null and createBy != ''">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="remark != null and remark != ''">#{remark},</if>
- </trim>
- </insert>
- <update id="updateCesiumGeojson" parameterType="com.ruoyi.system.domain.CesiumGeojson">
- update cesium_geojson
- <trim prefix="SET" suffixOverrides=",">
- <if test="layerName != null and layerName != ''">layer_name = #{layerName},</if>
- <if test="fileName != null and fileName != ''">file_name = #{fileName},</if>
- <if test="geojsonUrl != null and geojsonUrl != ''">geojson_url = #{geojsonUrl},</if>
- <if test="originalData != null">original_data = #{originalData},</if>
- <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="remark != null and remark != ''">remark = #{remark},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteCesiumGeojsonById" parameterType="Long">
- delete from cesium_geojson where id = #{id}
- </delete>
- <delete id="deleteCesiumGeojsonByIds" parameterType="Long">
- delete from cesium_geojson where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|