Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
Overview
Overview
Details
Activity
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
Administrator
xzxt-app-report
Commits
43d3ab82
Commit
43d3ab82
authored
Jun 13, 2023
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常口接口控制身份证号码准确性
parent
63f40374
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/main/java/org/springblade/founder/ryythcj/service/impl/TbStAppRyxxServiceImpl.java
+5
-0
No files found.
src/main/java/org/springblade/founder/ryythcj/service/impl/TbStAppRyxxServiceImpl.java
View file @
43d3ab82
...
...
@@ -184,7 +184,12 @@ public class TbStAppRyxxServiceImpl implements TbStAppRyxxService {
@Override
public
TbStAppRyxx
tqQgryxx
(
String
zjhm
)
throws
ParseException
{
TbStAppRyxx
ryxx
;
String
SFZH_REGEX
=
"(^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|"
+
"(^[1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)"
;
if
(
StringUtils
.
isNotEmpty
(
zjhm
)){
if
(!
zjhm
.
matches
(
SFZH_REGEX
))
{
throw
new
RuntimeException
(
"身份证号格式有误!"
);
}
if
(!
ifQgzyFlag
){
QgckryBean
qgckryBean
=
new
QgckryBean
();
qgckryBean
.
setXm
(
"测试人员"
);
...
...
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