|
@@ -143,6 +143,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
|
+ <selectKey keyProperty="userId" resultType="long" order="BEFORE">
|
|
|
+ SELECT seq_sys_user.NEXTVAL as userId FROM DUAL
|
|
|
+ </selectKey>
|
|
|
insert into sys_user(
|
|
|
<if test="userId != null and userId != 0">user_id,</if>
|
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|