Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
a6da8f5d
提交
a6da8f5d
authored
1月 18, 2024
作者:
han
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序重新注册时,更改实名认证信息
补充已经实名认证过的unionId
上级
e4be4c8e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
11 行删除
+34
-11
RealNameAuthDao.java
.../src/main/java/com/mmc/iuav/user/dao/RealNameAuthDao.java
+1
-1
AuthServiceImpl.java
.../java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
+2
-2
RealNameAuthServiceImpl.java
...m/mmc/iuav/user/service/impl/RealNameAuthServiceImpl.java
+6
-2
RealNameAuthDao.xml
...ervice-user/src/main/resources/mapper/RealNameAuthDao.xml
+25
-6
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/RealNameAuthDao.java
浏览文件 @
a6da8f5d
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
*/
*/
@Mapper
@Mapper
public
interface
RealNameAuthDao
{
public
interface
RealNameAuthDao
{
int
existHasBeenAuth
(
String
unionId
,
String
idNumber
);
RealNameAuthDO
existHasBeenAuth
(
String
unionId
,
String
idNumber
);
RealNameAuthDO
getRealNameAuthByUnionId
(
String
unionId
);
RealNameAuthDO
getRealNameAuthByUnionId
(
String
unionId
);
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/AuthServiceImpl.java
浏览文件 @
a6da8f5d
...
@@ -133,8 +133,8 @@ public class AuthServiceImpl implements AuthService {
...
@@ -133,8 +133,8 @@ public class AuthServiceImpl implements AuthService {
RealNameAuthDO
nameAuthByUnionId
=
realNameAuthDao
.
getRealNameAuthBakByUnionId
(
unionId
);
RealNameAuthDO
nameAuthByUnionId
=
realNameAuthDao
.
getRealNameAuthBakByUnionId
(
unionId
);
if
(
nameAuthByUnionId
!=
null
)
{
if
(
nameAuthByUnionId
!=
null
)
{
nameAuthByUnionId
.
setUserAccountId
(
userAccountDO
.
getId
());
nameAuthByUnionId
.
setUserAccountId
(
userAccountDO
.
getId
());
nameAuthByUnionId
.
setId
(
null
);
//
nameAuthByUnionId.setId(null);
realNameAuthDao
.
add
RealNameAuth
(
nameAuthByUnionId
);
realNameAuthDao
.
update
RealNameAuth
(
nameAuthByUnionId
);
}
}
log
.
info
(
"用户的id是=====》{}"
,
userAccountDO
.
getId
());
log
.
info
(
"用户的id是=====》{}"
,
userAccountDO
.
getId
());
}
else
{
}
else
{
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/RealNameAuthServiceImpl.java
浏览文件 @
a6da8f5d
...
@@ -52,8 +52,12 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
...
@@ -52,8 +52,12 @@ public class RealNameAuthServiceImpl implements RealNameAuthService {
return
ResultBody
.
error
(
ResultEnum
.
REAL_NAME_PASS_ERROR
);
return
ResultBody
.
error
(
ResultEnum
.
REAL_NAME_PASS_ERROR
);
}
}
// 查询是否已认证
// 查询是否已认证
int
count
=
realNameAuthDao
.
existHasBeenAuth
(
realNameAuthVO
.
getUnionId
(),
realNameAuthVO
.
getIdNumber
());
RealNameAuthDO
realNameAuthDO1
=
realNameAuthDao
.
existHasBeenAuth
(
realNameAuthVO
.
getUnionId
(),
realNameAuthVO
.
getIdNumber
());
if
(
count
>
0
)
{
if
(
realNameAuthDO1
!=
null
)
{
if
(
realNameAuthDO1
.
getUnionId
()
==
null
){
realNameAuthDO1
.
setUnionId
(
realNameAuthVO
.
getUnionId
());
realNameAuthDao
.
updateRealNameAuth
(
realNameAuthDO1
);
}
return
ResultBody
.
error
(
ResultEnum
.
IDENTITY_HAS_BEEN_AUTHENTICATED
);
return
ResultBody
.
error
(
ResultEnum
.
IDENTITY_HAS_BEEN_AUTHENTICATED
);
}
}
// 校验正面
// 校验正面
...
...
csm-service/cms-service-user/src/main/resources/mapper/RealNameAuthDao.xml
浏览文件 @
a6da8f5d
...
@@ -77,12 +77,31 @@
...
@@ -77,12 +77,31 @@
where id = #{id}
where id = #{id}
</update>
</update>
<select
id=
"existHasBeenAuth"
resultType=
"java.lang.Integer"
>
<select
id=
"existHasBeenAuth"
resultType=
"com.mmc.iuav.user.entity.RealNameAuthDO"
>
select count(*)
select rna.id,
from real_name_auth
rna.user_account_id,
where id_number = #{idNumber}
rna.union_id,
and check_status = 1
rna.front_id_img,
and is_deleted = 0
rna.back_id_img,
rna.id_number,
rna.user_name,
rna.sex,
rna.nationality,
rna.birthday,
rna.address,
rna.issue,
rna.start_date,
rna.end_date,
rna.is_fake_front,
rna.is_fake_back,
rna.check_status,
rna.remark,
rna.create_time
from real_name_auth rna
where rna.id_number = #{idNumber}
and rna.check_status = 1
and rna.is_deleted = 0
limit 1
</select>
</select>
<select
id=
"getRealNameAuthByUnionId"
resultType=
"com.mmc.iuav.user.entity.RealNameAuthDO"
>
<select
id=
"getRealNameAuthByUnionId"
resultType=
"com.mmc.iuav.user.entity.RealNameAuthDO"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论