站点搜索接口,图例管理,mybatis-plus连表插件整合,零碎修改等

This commit is contained in:
mi9688
2024-10-09 15:03:18 +08:00
parent b66357dd77
commit 04def663c1
21 changed files with 568 additions and 28 deletions

View File

@ -0,0 +1,82 @@
<?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.fastbee.ggroup.mapper.GLegendTypeMapper">
<resultMap type="GLegendType" id="GLegendTypeResult">
<result property="id" column="id" />
<result property="typeName" column="type_name" />
<result property="description" column="description" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="category" column="category" />
</resultMap>
<sql id="selectGLegendTypeVo">
select id, type_name, description, create_time, create_by, update_time, update_by, category from g_legend_type
</sql>
<select id="selectGLegendTypeList" parameterType="GLegendType" resultMap="GLegendTypeResult">
<include refid="selectGLegendTypeVo"/>
<where>
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="category != null and category != ''"> and category = #{category}</if>
</where>
</select>
<select id="selectGLegendTypeById" parameterType="Long" resultMap="GLegendTypeResult">
<include refid="selectGLegendTypeVo"/>
where id = #{id}
</select>
<insert id="insertGLegendType" parameterType="GLegendType" useGeneratedKeys="true" keyProperty="id">
insert into g_legend_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="typeName != null and typeName != ''">type_name,</if>
<if test="description != null">description,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="category != null">category,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="typeName != null and typeName != ''">#{typeName},</if>
<if test="description != null">#{description},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="category != null">#{category},</if>
</trim>
</insert>
<update id="updateGLegendType" parameterType="GLegendType">
update g_legend_type
<trim prefix="SET" suffixOverrides=",">
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
<if test="description != null">description = #{description},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="category != null">category = #{category},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteGLegendTypeById" parameterType="Long">
delete from g_legend_type where id = #{id}
</delete>
<delete id="deleteGLegendTypeByIds" parameterType="String">
delete from g_legend_type where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>