Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
Project
Project
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
liyang
sts网站
Commits
a0447de0
Commit
a0447de0
authored
Apr 15, 2022
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)
parent
46db06a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
SysDictType.java
...java/com/ruoyi/common/core/domain/entity/SysDictType.java
+2
-4
No files found.
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java
View file @
a0447de0
package
com
.
ruoyi
.
common
.
core
.
domain
.
entity
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Size
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -27,9 +27,6 @@ public class SysDictType extends BaseEntity
private
String
dictName
;
/** 字典类型 */
@NotBlank
(
message
=
"字典类型不能为空"
)
@Pattern
(
regexp
=
"^[a-z][a-z0-9_]*$"
,
message
=
"字典类型必须以字母开头,且字典类型只能由小写字母或加下划线还有数字组成"
)
@Size
(
min
=
2
,
max
=
200
,
message
=
"字典类型长度必须在2-200个字符之间"
)
@Excel
(
name
=
"字典类型"
)
private
String
dictType
;
...
...
@@ -61,6 +58,7 @@ public class SysDictType extends BaseEntity
@NotBlank
(
message
=
"字典类型不能为空"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"字典类型类型长度不能超过100个字符"
)
@Pattern
(
regexp
=
"^[a-z][a-z0-9_]*$"
,
message
=
"字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)"
)
public
String
getDictType
()
{
return
dictType
;
...
...
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