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

This commit is contained in:
RuoYi
2020-08-05 14:21:31 +08:00
parent 4a64a9269a
commit c0c62001a9
7 changed files with 11 additions and 11 deletions

View File

@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkDeptNameUnique" resultMap="SysDeptResult">
<include refid="selectDeptVo"/>
where dept_name=#{deptName} and parent_id = #{parentId}
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
</select>
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">