|
|
@@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertRole" parameterType="SysRole">
|
|
|
+ <insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId" keyColumn="role_id">
|
|
|
insert into app_user.sys_role(
|
|
|
<if test="roleId != null and roleId != 0">role_id,</if>
|
|
|
<if test="roleName != null and roleName != ''">role_name,</if>
|