🎨 用户主页完善
This commit is contained in:
parent
b65bd06797
commit
005c7f0189
@ -17,4 +17,6 @@ public class UserDTO {
|
|||||||
private String avatarUrl;
|
private String avatarUrl;
|
||||||
|
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
|
||||||
|
private String signature;
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
<result column="nickname" property="nickname"/>
|
<result column="nickname" property="nickname"/>
|
||||||
<result column="avatar_type" property="avatarType"/>
|
<result column="avatar_type" property="avatarType"/>
|
||||||
<result column="avatar_url" property="avatarUrl"/>
|
<result column="avatar_url" property="avatarUrl"/>
|
||||||
|
<result column="signature" property="signature"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<insert id="insertUserRole">
|
<insert id="insertUserRole">
|
||||||
insert into vertical_user_role (id_user,id_role,created_time) values (#{idUser},#{idRole},sysdate())
|
insert into vertical_user_role (id_user,id_role,created_time) values (#{idUser},#{idRole},sysdate())
|
||||||
@ -67,7 +68,7 @@
|
|||||||
select id, nickname, sex, avatar_type, avatar_url, email, phone, account, status, signature, last_login_time from vertical_user where account = #{account}
|
select id, nickname, sex, avatar_type, avatar_url, email, phone, account, status, signature, last_login_time from vertical_user where account = #{account}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectUserDTOByNickname" resultMap="DTOResultMapper">
|
<select id="selectUserDTOByNickname" resultMap="DTOResultMapper">
|
||||||
select id, nickname, avatar_type, avatar_url, account from vertical_user where nickname = #{nickname} and status = 0
|
select id, nickname, avatar_type, avatar_url, account, signature from vertical_user where nickname = #{nickname} and status = 0
|
||||||
</select>
|
</select>
|
||||||
<select id="selectRoleWeightsByUser" resultType="java.lang.Integer">
|
<select id="selectRoleWeightsByUser" resultType="java.lang.Integer">
|
||||||
select vr.weights from vertical_role vr left join vertical_user_role vur on vr.id = vur.id_role where vur.id_user = #{idUser}
|
select vr.weights from vertical_role vr left join vertical_user_role vur on vr.id = vur.id_role where vur.id_user = #{idUser}
|
||||||
|
Loading…
Reference in New Issue
Block a user