Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
4b162fc0
Commit
4b162fc0
authored
Aug 15, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
9412b2a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
IdInformation.java
...ava/com/xxfc/platform/universal/entity/IdInformation.java
+1
-1
CertificationService.java
...xxfc/platform/universal/service/CertificationService.java
+11
-9
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/entity/IdInformation.java
View file @
4b162fc0
...
...
@@ -47,7 +47,7 @@ public class IdInformation implements Serializable {
* 用户id
*/
@Column
(
name
=
"user_login_id"
)
private
Integer
userLo
n
ginId
;
private
Integer
userLoginId
;
/**
*
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/CertificationService.java
View file @
4b162fc0
...
...
@@ -4,6 +4,7 @@ package com.xxfc.platform.universal.service;
import
cn.hutool.core.map.MapUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.common.exception.BaseException
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.xxfc.platform.universal.entity.IdInformation
;
...
...
@@ -335,20 +336,21 @@ public class CertificationService {
Example
exa
=
new
Example
(
IdInformation
.
class
);
Example
.
Criteria
criteria
=
exa
.
createCriteria
();
criteria
.
andEqualTo
(
"idNumber"
,
idInformation
.
getIdNumber
());
criteria
.
andEqualTo
(
"userLonginId"
,
idInformation
.
getUserLon
ginId
());
List
<
IdInformation
>
idInformati
on
s
=
idInformationMapper
.
selectByExample
(
exa
);
if
(
CollectionUtils
.
isEmpty
(
idInformati
on
s
))
{
// criteria.andEqualTo("userLoginId",idInformation.getUserLo
ginId());
List
<
IdInformation
>
idInformati
c
s
=
idInformationMapper
.
selectByExample
(
exa
);
if
(
CollectionUtils
.
isEmpty
(
idInformati
c
s
))
{
idInformation
.
setCrtTime
(
new
Date
());
idInformationMapper
.
insertSelective
(
idInformation
);
}
else
{
IdInformation
idInformation1
=
idInformations
.
get
(
0
);
idInformation
.
setId
(
idInformation1
.
getId
());
idInformation
.
setUpdTime
(
new
Date
());
idInformationMapper
.
updateByPrimaryKeySelective
(
idInformation
);
// IdInformation idInformation1 = idInformatics.get(0);
// idInformation.setId(idInformation1.getId());
// idInformation.setUpdTime(new Date());
// idInformationMapper.updateByPrimaryKeySelective(idInformation);
throw
new
BaseException
(
"该身份证已存在,不要重复认证!"
);
}
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLo
n
ginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
log
.
info
(
"----addIdInformation---userid==="
+
idInformation
.
getUserLoginId
()+
"----name===="
+
idInformation
.
getName
()+
"---IdNumber==="
+
idInformation
.
getIdNumber
());
//认证成功后修改用户,用户认证状态
ObjectRestResponse
authentication
=
userFeign
.
authentication
(
idInformation
.
getUserLo
n
ginId
(),
idInformation
.
getName
(),
idInformation
.
getIdNumber
(),
1
);
ObjectRestResponse
authentication
=
userFeign
.
authentication
(
idInformation
.
getUserLoginId
(),
idInformation
.
getName
(),
idInformation
.
getIdNumber
(),
1
);
return
ObjectRestResponse
.
succ
(
idInformation
.
getId
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment