Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
cms-ci-test
Commits
99f0a19f
提交
99f0a19f
authored
8月 01, 2023
作者:
张小凤
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UserAccount(add)
上级
36c7fe33
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
44 行增加
和
28 行删除
+44
-28
UserAccountVO.java
...c/main/java/com/mmc/iuav/user/model/vo/UserAccountVO.java
+2
-0
UserAccountController.java
...a/com/mmc/iuav/user/controller/UserAccountController.java
+1
-1
UserAccountDO.java
...src/main/java/com/mmc/iuav/user/entity/UserAccountDO.java
+8
-0
UserServiceDao.xml
...service-user/src/main/resources/mapper/UserServiceDao.xml
+33
-27
没有找到文件。
cms-common/cms-common-model/src/main/java/com/mmc/iuav/user/model/vo/UserAccountVO.java
浏览文件 @
99f0a19f
...
@@ -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
;
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/UserAccountController.java
浏览文件 @
99f0a19f
...
@@ -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
()));
}
}
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/entity/UserAccountDO.java
浏览文件 @
99f0a19f
...
@@ -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
();
}
}
...
...
csm-service/cms-service-user/src/main/resources/mapper/UserServiceDao.xml
浏览文件 @
99f0a19f
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论