唯一限制条件只返回单条数据

This commit is contained in:
RuoYi
2020-08-07 16:42:36 +08:00
parent 6bd7e183f6
commit f1bc33e80d
6 changed files with 10 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
<include refid="selectConfigVo"/>
where config_key = #{configKey}
where config_key = #{configKey} limit 1
</select>
<insert id="insertConfig" parameterType="SysConfig">