Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
21e49667
Commit
21e49667
authored
Jan 16, 2019
by
xiaoguang.xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复身份证x用户填写小写的问题
parent
00d8b44b
Pipeline
#942
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
PhoneHashEventListener.java
...java/cn/quantgroup/xyqb/event/PhoneHashEventListener.java
+1
-0
UserDetailServiceImpl.java
...ntgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
+6
-4
No files found.
src/main/java/cn/quantgroup/xyqb/event/PhoneHashEventListener.java
View file @
21e49667
...
@@ -41,6 +41,7 @@ public class PhoneHashEventListener implements ApplicationListener<RegisterEvent
...
@@ -41,6 +41,7 @@ public class PhoneHashEventListener implements ApplicationListener<RegisterEvent
//如果有身份证号. 更新一下
//如果有身份证号. 更新一下
if
(
StringUtils
.
isNotEmpty
(
idNo
))
{
if
(
StringUtils
.
isNotEmpty
(
idNo
))
{
idNo
=
idNo
.
toUpperCase
();
userHashMapping
.
setIdNoMd5
(
MD5Util
.
build
(
idNo
));
userHashMapping
.
setIdNoMd5
(
MD5Util
.
build
(
idNo
));
}
}
...
...
src/main/java/cn/quantgroup/xyqb/service/user/impl/UserDetailServiceImpl.java
View file @
21e49667
...
@@ -52,11 +52,13 @@ public class UserDetailServiceImpl implements IUserDetailService {
...
@@ -52,11 +52,13 @@ public class UserDetailServiceImpl implements IUserDetailService {
@Override
@Override
public
UserDetail
saveUserDetail
(
UserDetail
userDetail
)
throws
DataIntegrityViolationException
{
public
UserDetail
saveUserDetail
(
UserDetail
userDetail
)
throws
DataIntegrityViolationException
{
UserDetail
userDetail1
=
userDetailRepository
.
save
(
userDetail
);
String
idNo
=
userDetail
.
getIdNo
();
if
(
Objects
.
nonNull
(
userDetail
))
{
if
(
StringUtils
.
isNotEmpty
(
idNo
)){
// 发送实名登记统计消息
userDetail
.
setIdNo
(
idNo
.
toUpperCase
());
applicationEventPublisher
.
publishEvent
(
new
UserDetailUpdateEvent
(
this
,
userDetail1
));
}
}
UserDetail
userDetail1
=
userDetailRepository
.
save
(
userDetail
);
// 发送实名登记统计消息
applicationEventPublisher
.
publishEvent
(
new
UserDetailUpdateEvent
(
this
,
userDetail1
));
return
userDetail1
;
return
userDetail1
;
}
}
...
...
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