jiangqs
2023-06-06 92da9546e1b37b06f78671b34389b1dec9dfadfc
ruoyi-modules/ruoyi-system/src/main/resources/mapper/config/CustomConfigMapper.xml
File was renamed from ruoyi-modules/ruoyi-system/src/main/resources/mapper/config/CustomeConfigMapper.xml
@@ -1,8 +1,8 @@
<?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.config.CustomeConfigMapper">
<mapper namespace="com.ruoyi.system.mapper.config.CustomConfigMapper">
    <resultMap type="CustomeConfig" id="CustomeConfigResult">
    <resultMap type="CustomConfig" id="CustomConfigResult">
        <result property="id"    column="id"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="type"    column="type"    />
@@ -13,12 +13,12 @@
        <result property="updateTime"    column="update_time"    />
    </resultMap>
    <sql id="selectCustomeConfigVo">
        select id, del_flag, type, key, name, value, create_time, update_time from t_custome_config
    <sql id="selectCustomConfigVo">
        select id, del_flag, type, key, name, value, create_time, update_time from t_custom_config
    </sql>
    <select id="selectCustomeConfigList" parameterType="CustomeConfig" resultMap="CustomeConfigResult">
        <include refid="selectCustomeConfigVo"/>
    <select id="selectCustomConfigList" parameterType="CustomConfig" resultMap="CustomConfigResult">
        <include refid="selectCustomConfigVo"/>
        <where>
            <if test="type != null "> and type = #{type}</if>
            <if test="key != null  and key != ''"> and key = #{key}</if>
@@ -27,13 +27,13 @@
        </where>
    </select>
    <select id="selectCustomeConfigById" parameterType="Long" resultMap="CustomeConfigResult">
        <include refid="selectCustomeConfigVo"/>
    <select id="selectCustomConfigById" parameterType="Long" resultMap="CustomConfigResult">
        <include refid="selectCustomConfigVo"/>
        where id = #{id}
    </select>
    <insert id="insertCustomeConfig" parameterType="CustomeConfig" useGeneratedKeys="true" keyProperty="id">
        insert into t_custome_config
    <insert id="insertCustomConfig" parameterType="CustomConfig" useGeneratedKeys="true" keyProperty="id">
        insert into t_custom_config
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="delFlag != null">del_flag,</if>
            <if test="type != null">type,</if>
@@ -54,8 +54,8 @@
        </trim>
    </insert>
    <update id="updateCustomeConfig" parameterType="CustomeConfig">
        update t_custome_config
    <update id="updateCustomConfig" parameterType="CustomConfig">
        update t_custom_config
        <trim prefix="SET" suffixOverrides=",">
            <if test="delFlag != null">del_flag = #{delFlag},</if>
            <if test="type != null">type = #{type},</if>
@@ -68,15 +68,19 @@
        where id = #{id}
    </update>
    <delete id="deleteCustomeConfigById" parameterType="Long">
        delete from t_custome_config where id = #{id}
    <delete id="deleteCustomConfigById" parameterType="Long">
        delete from t_custom_config where id = #{id}
    </delete>
    <delete id="deleteCustomeConfigByIds" parameterType="String">
        delete from t_custome_config where id in
    <delete id="deleteCustomConfigByIds" parameterType="String">
        delete from t_custom_config where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
    <select id="getByKey" resultMap="CustomConfigResult">
        <include refid="selectCustomConfigVo"/>
        WHERE del_flag = 0 AND key = #{key}
    </select>
</mapper>