提交 99f0a19f 作者: 张小凤

UserAccount(add)

上级 36c7fe33
...@@ -69,4 +69,6 @@ public class UserAccountVO implements Serializable { ...@@ -69,4 +69,6 @@ public class UserAccountVO implements Serializable {
private Integer leader; private Integer leader;
@ApiModelProperty(value = "实名认证状态") @ApiModelProperty(value = "实名认证状态")
private Integer realNameAuthStatus; private Integer realNameAuthStatus;
@ApiModelProperty(value = "飞手审核 0审核中 1审核通过 2审核不通过 null不是飞手")
private Integer auditStatus;
} }
...@@ -38,7 +38,7 @@ public class UserAccountController extends BaseController { ...@@ -38,7 +38,7 @@ public class UserAccountController extends BaseController {
@ApiOperation(value = "获取用户信息") @ApiOperation(value = "获取用户信息")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = UserAccountVO.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = UserAccountVO.class)})
@GetMapping("info") @GetMapping("info")
public ResultBody info(HttpServletRequest request) { public ResultBody<UserAccountVO> info(HttpServletRequest request) {
return ResultBody.success(userAccountService.getUserAccountById(this.getUserLoginInfoFromRedis(request).getUserAccountId())); return ResultBody.success(userAccountService.getUserAccountById(this.getUserLoginInfoFromRedis(request).getUserAccountId()));
} }
......
...@@ -68,6 +68,13 @@ public class UserAccountDO implements Serializable { ...@@ -68,6 +68,13 @@ public class UserAccountDO implements Serializable {
*/ */
private String operatorUserName; private String operatorUserName;
/**
* 飞手审核状态
*
* @param auditStatus
*/
private Integer auditStatus;
public UserAccountDO(UserAccountVO userAccountVO) { public UserAccountDO(UserAccountVO userAccountVO) {
this.id = userAccountVO.getId(); this.id = userAccountVO.getId();
this.phoneNum = userAccountVO.getPhoneNum(); this.phoneNum = userAccountVO.getPhoneNum();
...@@ -102,6 +109,7 @@ public class UserAccountDO implements Serializable { ...@@ -102,6 +109,7 @@ public class UserAccountDO implements Serializable {
.userRcdVO(this.userRcdDO == null ? null : this.userRcdDO.buildUserRcdVO()) .userRcdVO(this.userRcdDO == null ? null : this.userRcdDO.buildUserRcdVO())
.leader(this.leader) .leader(this.leader)
.realNameAuthStatus(this.realNameAuthStatus) .realNameAuthStatus(this.realNameAuthStatus)
.auditStatus(this.auditStatus)
.build(); .build();
} }
......
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
<update id="disableUserAccount"> <update id="disableUserAccount">
update user_account update user_account
set disable = 1, set disable = 1,
union_id = #{removeNO} union_id = #{removeNO}
where id = #{userAccountId} where id = #{userAccountId}
</update> </update>
...@@ -123,24 +123,26 @@ ...@@ -123,24 +123,26 @@
</select> </select>
<select id="getUserAccountById" resultType="com.mmc.iuav.user.entity.UserAccountDO"> <select id="getUserAccountById" resultType="com.mmc.iuav.user.entity.UserAccountDO">
select id, SELECT ua.id,
phone_num, ua.phone_num,
user_name, ua.user_name,
nick_name, ua.nick_name,
user_img, ua.user_img,
open_id, ua.open_id,
union_id, ua.union_id,
user_sex, ua.user_sex,
email, ua.email,
source, ua.`source`,
account_status, ua.account_status,
remark, ua.remark,
port_type, ua.port_type,
disable, ua.`DISABLE`,
create_time, ua.create_time,
update_time ua.update_time,
from user_account pc.audit_status
where id = #{id} FROM user_account ua
LEFT JOIN pilot_certification pc ON pc.user_account_id = ua.id
WHERE ua.id = #{id}
</select> </select>
<select id="listUserAccountIdsByDistrictCode" resultType="java.lang.Integer"> <select id="listUserAccountIdsByDistrictCode" resultType="java.lang.Integer">
...@@ -355,23 +357,26 @@ ...@@ -355,23 +357,26 @@
</select> </select>
<select id="countRcd" resultType="int"> <select id="countRcd" resultType="int">
select count(*) from user_rcd where rcd_user_id = #{userAccountId} select count(*)
from user_rcd
where rcd_user_id = #{userAccountId}
</select> </select>
<select id="listUserRcd" resultType="com.mmc.iuav.user.entity.UserAccountDO" <select id="listUserRcd" resultType="com.mmc.iuav.user.entity.UserAccountDO"
parameterType="com.mmc.iuav.user.model.qo.UserRcdQO"> parameterType="com.mmc.iuav.user.model.qo.UserRcdQO">
select ua.id,ua.phone_num, ua.user_name, ua.nick_name, ua.user_img,ur.create_time select ua.id, ua.phone_num, ua.user_name, ua.nick_name, ua.user_img, ur.create_time
from user_account ua inner join user_rcd ur on ua.id = ur.user_account_id from user_account ua
inner join user_rcd ur on ua.id = ur.user_account_id
where ur.rcd_user_id = #{userAccountId} where ur.rcd_user_id = #{userAccountId}
order by ur.create_time desc order by ur.create_time desc
limit #{pageNo}, #{pageSize} limit #{pageNo}, #{pageSize}
</select> </select>
<select id="topRcd" resultType="com.mmc.iuav.user.entity.UserAccountDO"> <select id="topRcd" resultType="com.mmc.iuav.user.entity.UserAccountDO">
select ua.id, select ua.id,
ua.nick_name, ua.nick_name,
ua.user_img, ua.user_img,
ua.user_name, ua.user_name,
ua.phone_num, ua.phone_num,
count(*) as invite_count count(*) as invite_count
from user_rcd urd from user_rcd urd
...@@ -417,7 +422,8 @@ ...@@ -417,7 +422,8 @@
create_time, create_time,
update_time update_time
from user_account from user_account
where phone_num = #{phoneNum} and disable = 0 where phone_num = #{phoneNum}
and disable = 0
</select> </select>
</mapper> </mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论