陈昶聿
9 小时以前 ca11d871c67ca9e1668193b95fbdc2bd9a18a280
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -104,9 +104,14 @@
        where r.role_name=#{roleName} and r.del_flag = '0' limit 1
    </select>
    <select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult">
    <select id="checkRoleKeyUnique" parameterType="com.ruoyi.common.core.domain.entity.SysRole" resultMap="SysRoleResult">
        <include refid="selectRoleVo"/>
        where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
        where r.role_key=#{roleKey}
        and r.del_flag = '0'
        <if test="orgid != null and orgid != ''">
            and r.orgid = #{orgid}
        </if>
        limit 1
    </select>
    <insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">