记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
5b8f579e
Commit
5b8f579e
authored
Jul 04, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:入场人非证件号格式校验;
parent
187764af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
AdamEntersParam.java
.../java/com/liquidnet/service/adam/dto/AdamEntersParam.java
+3
-2
LnsRegex.java
...in/java/com/liquidnet/commons/lang/constant/LnsRegex.java
+4
-0
No files found.
liquidnet-bus-api/liquidnet-service-adam-api/src/main/java/com/liquidnet/service/adam/dto/AdamEntersParam.java
View file @
5b8f579e
...
@@ -23,7 +23,8 @@ public class AdamEntersParam implements java.io.Serializable {
...
@@ -23,7 +23,8 @@ public class AdamEntersParam implements java.io.Serializable {
@ApiModelProperty
(
position
=
13
,
required
=
true
,
value
=
"证件类型:1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证"
,
allowableValues
=
"1,2,3,4,5"
)
@ApiModelProperty
(
position
=
13
,
required
=
true
,
value
=
"证件类型:1-大陆身份证,2-港澳通行证,3-台胞证,4-护照,5-军官证"
,
allowableValues
=
"1,2,3,4,5"
)
@NotNull
@Min
(
1
)
@Max
(
5
)
@NotNull
@Min
(
1
)
@Max
(
5
)
private
Integer
type
;
private
Integer
type
;
@ApiModelProperty
(
position
=
14
,
required
=
true
,
value
=
"入场人证件号[11]"
,
example
=
"110101110001010111"
)
@ApiModelProperty
(
position
=
14
,
required
=
true
,
value
=
"入场人证件号[30]"
,
example
=
"110101110001010111"
)
// @Pattern(regexp = LnsRegex.Valid.CHINESE_ID_CARD, message = "身份证号格式有误")
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
LETTER_NUMBER
,
message
=
"证件号格式有误"
)
@Size
(
min
=
1
,
max
=
30
)
private
String
idCard
;
private
String
idCard
;
}
}
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/constant/LnsRegex.java
View file @
5b8f579e
...
@@ -22,5 +22,9 @@ public class LnsRegex {
...
@@ -22,5 +22,9 @@ public class LnsRegex {
* 身份证号(15位||18位)
* 身份证号(15位||18位)
*/
*/
public
static
final
String
CHINESE_ID_CARD
=
"(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"
;
public
static
final
String
CHINESE_ID_CARD
=
"(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)"
;
/**
* 字母、数字组合
*/
public
static
final
String
LETTER_NUMBER
=
"^[A-Z0-9]+$"
;
}
}
}
}
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