File was renamed from ruoyi-modules/ruoyi-system/src/main/resources/mapper/config/CustomeConfigMapper.xml |
| | |
| | | <?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" /> |
| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | </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> |
| | |
| | | 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> |