Browse Source

用户表修改

wyyay 2 years ago
parent
commit
5bfc7a7f8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      base-system/src/main/resources/mapper/system/SysUserMapper.xml

+ 1 - 1
base-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="id">
  		insert into sys_user(
 		    <if test="id != null and id != 0">id,</if>
- 			<if test="userId != null and userId != 0">user_id,</if>
+ 			<if test="userId != null and userId != ''">user_id,</if>
  			<if test="deptId != null and deptId != 0">dept_id,</if>
  			<if test="userName != null and userName != ''">user_name,</if>
  			<if test="nickName != null and nickName != ''">nick_name,</if>