Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 00ac4a0a
authored
Nov 10, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref(工作队): 工作队名称长度添加校验
1 parent
0a89d6ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamAddDTO.java
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamUpdateDTO.java
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamAddDTO.java
View file @
00ac4a0
package
com
.
dituhui
.
pea
.
order
.
dto
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
public
class
BusinessTeamAddDTO
{
...
...
@@ -17,6 +20,8 @@ public class BusinessTeamAddDTO {
/**
* 工作队名称
*/
@NotBlank
(
message
=
"工作队名称不能为空"
)
@Length
(
min
=
1
,
max
=
100
,
message
=
"工作队名称长度限制100字符内"
)
private
String
teamName
;
/**
* 配件仓Id
...
...
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamUpdateDTO.java
View file @
00ac4a0
package
com
.
dituhui
.
pea
.
order
.
dto
;
import
org.hibernate.validator.constraints.Length
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
public
class
BusinessTeamUpdateDTO
{
...
...
@@ -24,6 +27,8 @@ public class BusinessTeamUpdateDTO {
/**
* 工作队名称
*/
@NotBlank
(
message
=
"工作队名称不能为空"
)
@Length
(
min
=
1
,
max
=
100
,
message
=
"工作队名称长度限制100字符内"
)
private
String
teamName
;
/**
* 配件仓Id
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment