| | |
| | | insert into sys_user(
|
| | | <if test="userId != null and userId != 0">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>
|
| | | <if test="email != null and email != ''">email,</if>
|
| | | <if test="avatar != null and avatar != ''">avatar,</if>
|
| | |
| | | update sys_user
|
| | | <set>
|
| | | <if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
|
| | | <if test="userName != null and userName != ''">user_name = #{userName},</if>
|
| | | <if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
|
| | | <if test="email != null ">email = #{email},</if>
|
| | | <if test="phonenumber != null ">phonenumber = #{phonenumber},</if>
|