fix: 添加出生日期字段
This commit is contained in:
@@ -88,6 +88,9 @@ public class UProfileController extends BaseController
|
||||
if (user.getSex() != null) {
|
||||
currentUser.setSex(user.getSex());
|
||||
}
|
||||
if (user.getBirthDate() != null) {
|
||||
currentUser.setBirthDate(user.getBirthDate());
|
||||
}
|
||||
if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(currentUser))
|
||||
{
|
||||
return error(MessageUtils.message("user.modify.user.phone.exist", loginUser.getUsername()));
|
||||
|
||||
@@ -26,7 +26,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="fullName" column="full_name" />
|
||||
<result property="age" column="age" />
|
||||
<result property="address" column="address" />
|
||||
<result property="kycStatus" column="kyc_status" />
|
||||
<result property="birthDate" column="birth_date" />
|
||||
<result property="kycStatus" column="kyc_status" />
|
||||
<association property="dept" javaType="UDept" resultMap="deptResult" />
|
||||
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
||||
</resultMap>
|
||||
@@ -63,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectUserVo">
|
||||
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.full_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.age, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
||||
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.full_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.age, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.birth_date,
|
||||
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
||||
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,
|
||||
k.status as kyc_status
|
||||
@@ -75,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</sql>
|
||||
|
||||
<select id="selectUserList" parameterType="UUser" resultMap="UUserResult">
|
||||
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.full_name, u.email, u.avatar, u.phonenumber, u.sex, u.age, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
||||
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.full_name, u.email, u.avatar, u.phonenumber, u.sex, u.age, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.birth_date,
|
||||
d.dept_name, d.leader,
|
||||
k.status as kyc_status
|
||||
from u_user u
|
||||
@@ -189,6 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fullName != null and fullName != ''">full_name,</if>
|
||||
<if test="age != null and age != ''">age,</if>
|
||||
<if test="address != null and address != ''">address,</if>
|
||||
<if test="birthDate != null">birth_date,</if>
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
@@ -206,6 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fullName != null and fullName != ''">#{fullName},</if>
|
||||
<if test="age != null and age != ''">#{age},</if>
|
||||
<if test="address != null and address != ''">#{address},</if>
|
||||
<if test="birthDate != null">#{birthDate},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
@@ -227,6 +230,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="loginIp != null and loginIp != ''">login_ip = #{loginIp},</if>
|
||||
<if test="loginDate != null">login_date = #{loginDate},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="birthDate != null">birth_date = #{birthDate},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
|
||||
Reference in New Issue
Block a user