文件名从 src/main/resources/mybatis/system/SysConfigMapper.xml 修改 |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | | <mapper namespace="com.ruoyi.project.system.mapper.SysConfigMapper">
|
| | |
|
| | | <resultMap type="SysConfig" id="SysConfigResult">
|
| | | <resultMap type="com.ruoyi.project.system.domain.SysConfig" id="SysConfigResult"> |
| | | <id property="configId" column="config_id" />
|
| | | <result property="configName" column="config_name" />
|
| | | <result property="configKey" column="config_key" />
|
| | |
| | | </where>
|
| | | </sql>
|
| | |
|
| | | <select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
|
| | | <select id="selectConfig" parameterType="com.ruoyi.project.system.domain.SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/>
|
| | | <include refid="sqlwhereSearch"/>
|
| | | </select>
|
| | |
|
| | | <select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
|
| | | <select id="selectConfigList" parameterType="com.ruoyi.project.system.domain.SysConfig" resultMap="SysConfigResult"> |
| | | <include refid="selectConfigVo"/>
|
| | | <where>
|
| | | <if test="configName != null and configName != ''">
|
| | |
| | | where config_key = #{configKey} limit 1
|
| | | </select>
|
| | |
|
| | | <insert id="insertConfig" parameterType="SysConfig">
|
| | | <insert id="insertConfig" parameterType="com.ruoyi.project.system.domain.SysConfig"> |
| | | insert into sys_config (
|
| | | <if test="configName != null and configName != '' ">config_name,</if>
|
| | | <if test="configKey != null and configKey != '' ">config_key,</if>
|
| | |
| | | )
|
| | | </insert>
|
| | |
|
| | | <update id="updateConfig" parameterType="SysConfig">
|
| | | <update id="updateConfig" parameterType="com.ruoyi.project.system.domain.SysConfig"> |
| | | update sys_config
|
| | | <set>
|
| | | <if test="configName != null and configName != ''">config_name = #{configName},</if>
|