我的--实名认证--添加--添加身份证类型idType
This commit is contained in:
parent
bbb62ce621
commit
64346d0fa4
@ -484,6 +484,9 @@ public class AppSystemController extends BaseController {
|
||||
userInfo.setUpdateTime(currentDate);
|
||||
userInfo.setBirth(birth);
|
||||
|
||||
// 这里先默认是0 居民身份证
|
||||
userInfo.setIdType("0");
|
||||
|
||||
int back = userInfoService.updateUserInfo(userInfo);
|
||||
if(back==0){
|
||||
return error("实名认证失败");
|
||||
|
||||
@ -31,6 +31,8 @@ public class UserInfo extends BaseEntity
|
||||
@Excel(name = "身份证号唯一值")
|
||||
private String idCard;
|
||||
|
||||
private String idType;
|
||||
|
||||
/** 用户性别:0 */
|
||||
@Excel(name = "用户性别:0")
|
||||
private String sex;
|
||||
@ -348,6 +350,14 @@ public class UserInfo extends BaseEntity
|
||||
}
|
||||
public void setCalculationTime(Date calculationTime){this.calculationTime = calculationTime;}
|
||||
|
||||
public void setIdType(String idType){
|
||||
this.idType = idType;
|
||||
}
|
||||
|
||||
public String getIdType(){
|
||||
return idType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="birth" column="date_of_birth"/>
|
||||
<result property="backGround" column="back_ground"/>
|
||||
<result property="calculationTime" column="calculation_time"/>
|
||||
<result property="idType" column="id_type"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="AppUserInfoVoResult" type="appUserInfoVo">
|
||||
@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="tMrTime" column="t_mr_time" />
|
||||
<result property="tOnlineTime" column="t_online_time" />
|
||||
<result property="tConsumption" column="t_consumption" />
|
||||
<result property="idType" column="id_type"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="HotAuthorDtoResult" type="HotAuthorDto">
|
||||
@ -62,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
|
||||
<sql id="selectUserInfoVo">
|
||||
select user_id, authentication_status, real_name, id_card, sex, signature, avatar, card_front, card_back, email, receive_rockets, send_rockets, shares, followers, s_online_time, s_mr_time, s_consumption, th_consumption, phonenumber, t_mr_time, t_online_time, t_consumption, update_time, date_of_birth, back_ground, calculation_time from user_info
|
||||
select user_id, authentication_status, real_name, id_card, sex, signature, avatar, card_front, card_back, email, receive_rockets, send_rockets, shares, followers, s_online_time, s_mr_time, s_consumption, th_consumption, phonenumber, t_mr_time, t_online_time, t_consumption, update_time, date_of_birth, back_ground, calculation_time, id_type from user_info
|
||||
</sql>
|
||||
|
||||
<select id="selectUserInfoList" parameterType="UserInfo" resultMap="UserInfoResult">
|
||||
@ -93,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="birth != null"> and date_of_birth = #{birth}</if>
|
||||
<if test="backGround != null"> and back_ground = #{backGround}</if>
|
||||
<if test="calculationTime != null"> and calculation_time = #{calculationTime}</if>
|
||||
<if test="idType != null">and id_type = #{idType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -102,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectAllUserInfo" resultMap="UserInfoResult">
|
||||
select user_id, authentication_status, real_name, id_card, sex, signature, avatar, card_front, card_back, email, receive_rockets, send_rockets, shares, followers, s_online_time, s_mr_time, s_consumption, th_consumption, phonenumber, t_mr_time, t_online_time, t_consumption, update_time, date_of_birth, back_ground, calculation_time from user_info
|
||||
select user_id, authentication_status, real_name, id_card, sex, signature, avatar, card_front, card_back, email, receive_rockets, send_rockets, shares, followers, s_online_time, s_mr_time, s_consumption, th_consumption, phonenumber, t_mr_time, t_online_time, t_consumption, update_time, date_of_birth, back_ground, calculation_time, id_type from user_info
|
||||
</select>
|
||||
<select id="getAllAppUserInfo" resultMap="AppUserInfoVoResult" parameterType="SysUser">
|
||||
select s.user_id, s.nick_name, s.status, s.create_time, u.receive_rockets, u.send_rockets, u.followers, u.s_online_time, u.s_mr_time, u.s_consumption, u.th_consumption, u.phonenumber, u.t_mr_time, u.t_online_time, u.t_consumption
|
||||
@ -163,6 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="birth != null">date_of_birth,</if>
|
||||
<if test="backGround != null">back_ground,</if>
|
||||
<if test="calculationTime != null">calculation_time,</if>
|
||||
<if test="idType != null">id_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
@ -191,6 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="birth != null">#{birth},</if>
|
||||
<if test="backGround != null">#{backGround},</if>
|
||||
<if test="calculationTime != null">#{calculationTime},</if>
|
||||
<if test="idType != null">#{idType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -222,6 +227,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="birth != null">date_of_birth = #{birth},</if>
|
||||
<if test="backGround != null">back_ground = #{backGround},</if>
|
||||
<if test="calculationTime != null">calculation_time = #{calculationTime},</if>
|
||||
<if test="idType != null">id_type = #{idType},</if>
|
||||
|
||||
</trim>
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user