|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
<result property="userName" column="user_name"/>
|
|
|
<result property="nickName" column="nick_name"/>
|
|
|
+ <result property="nickNameEn" column="nick_name_en"/>
|
|
|
<result property="email" column="email"/>
|
|
|
<result property="phonenumber" column="phonenumber"/>
|
|
|
<result property="sex" column="sex"/>
|
|
@@ -57,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
u.dept_id,
|
|
|
u.user_name,
|
|
|
u.nick_name,
|
|
|
+ u.nick_name_en,
|
|
|
u.email,
|
|
|
u.avatar,
|
|
|
u.phonenumber,
|
|
@@ -298,7 +300,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userType != null and userType != ''">user_type,</if>
|
|
|
<if test="jobNumber != null and jobNumber != ''">job_number,</if>
|
|
|
<if test="userCode != null and userCode != ''">user_code,</if>
|
|
|
- create_time
|
|
|
+ <if test="nickNameEn != null and nickNameEn != ''">nick_name_en,</if>
|
|
|
+ create_time
|
|
|
)values(
|
|
|
<if test="userId != null and userId != ''">#{userId},</if>
|
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
|
@@ -316,7 +319,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userType != null and userType != ''">#{userType},</if>
|
|
|
<if test="jobNumber != null and jobNumber != ''">#{jobNumber},</if>
|
|
|
<if test="userCode != null and userCode != ''">#{userCode},</if>
|
|
|
- sysdate()
|
|
|
+ <if test="nickNameEn != null and nickNameEn != ''">#{nickNameEn},</if>
|
|
|
+ sysdate()
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -340,7 +344,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userType != null and userType != ''">user_type = #{userType},</if>
|
|
|
<if test="jobNumber != null and jobNumber != ''">job_number = #{jobNumber},</if>
|
|
|
<if test="userCode != null and userCode != ''">user_code = #{userCode},</if>
|
|
|
- update_time = sysdate()
|
|
|
+ <if test="nickNameEn != null and nickNameEn != ''">nick_name_en = #{nickNameEn},</if>
|
|
|
+ update_time = sysdate()
|
|
|
</set>
|
|
|
where user_id = #{userId}
|
|
|
</update>
|