自增id问题
This commit is contained in:
@@ -103,7 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where r.role_key=#{roleKey} and r.del_flag = '0'
|
||||
</select>
|
||||
|
||||
<insert id="insertRole" parameterType="SysRole" >
|
||||
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId" >
|
||||
insert into sys_role(
|
||||
<if test="roleId != null and roleId != 0">role_id,</if>
|
||||
<if test="roleName != null and roleName != ''">role_name,</if>
|
||||
|
||||
Reference in New Issue
Block a user